==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || doas -n sysctl kern.maxfiles=110000 kern.maxfiles: 7030 -> 110000 ==== run-default ==== cc -O2 -pipe -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/netinet/bindconnect/bindconnect.c cc -o bindconnect bindconnect.o -lpthread time ./bindconnect count: socket 1214700, close 147364, bind 89342, connect 173686, delroute 0 10.00 real 7.06 user 19.79 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1445779, close 82379, bind 615526, connect 0, delroute 0 10.01 real 6.80 user 21.44 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1550733, close 70587, bind 0, connect 134422, delroute 0 10.01 real 6.95 user 21.59 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1304626, close 172750, bind 360409, connect 159592, delroute 0 10.01 real 5.01 user 16.92 sys ==== run-inet-udp-100000 ==== doas -n time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1151167, close 111004, bind 71450, connect 60007, delroute 0 10.58 real 5.01 user 19.97 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1374788, close 124024, bind 290117, connect 92365, delroute 0 10.01 real 5.07 user 18.05 sys ==== run-inet-udp-localnet-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -c 6 -N 127.0.0.1/8 count: socket 1549940, close 89449, bind 30406, connect 84191, delroute 0 10.05 real 4.67 user 17.38 sys ==== run-inet-udp-localnet-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -N 127.0.0.1/8 count: socket 1386131, close 135423, bind 242735, connect 82686, delroute 0 10.00 real 4.92 user 16.76 sys ==== run-inet-udp-localnet-connect-delete ==== doas -n time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 127.0.0.1/8 count: socket 1410686, close 74028, bind 0, connect 157418, delroute 59924 10.03 real 6.02 user 17.64 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 971157, close 238250, bind 1718672, connect 0, delroute 0 10.01 real 3.13 user 18.57 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 927571, close 150150, bind 0, connect 1408670, delroute 0 10.01 real 3.77 user 17.57 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 878883, close 159707, bind 680410, connect 522497, delroute 0 10.01 real 3.59 user 15.62 sys ==== run-inet-tcp-100000 ==== doas -n time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 136001, close 30716, bind 132529, connect 33231, delroute 0 10.81 real 0.91 user 12.10 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 828322, close 159578, bind 705212, connect 638520, delroute 0 10.05 real 3.73 user 15.60 sys ==== run-inet-tcp-localnet-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -c 6 -N 127.0.0.1/8 count: socket 742840, close 115424, bind 98529, connect 277905, delroute 0 10.01 real 3.06 user 15.90 sys ==== run-inet-tcp-localnet-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -N 127.0.0.1/8 count: socket 809035, close 134400, bind 452879, connect 197812, delroute 0 10.05 real 2.98 user 15.91 sys ==== run-inet-tcp-localnet-connect-delete ==== doas -n time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 127.0.0.1/8 count: socket 759634, close 93286, bind 0, connect 213472, delroute 75379 10.01 real 3.31 user 15.52 sys ==== run-inet-any-bind ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1432777, close 158335, bind 218374, connect 0, delroute 0 10.01 real 4.16 user 15.41 sys ==== run-inet-any-connect ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1481639, close 92616, bind 0, connect 248776, delroute 0 10.01 real 5.40 user 17.45 sys ==== run-inet-any-bind-connect ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1454050, close 96915, bind 127576, connect 62048, delroute 0 10.01 real 5.31 user 17.81 sys ==== run-inet-any-100000 ==== doas -n time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1176673, close 34138, bind 178134, connect 130907, delroute 0 10.50 real 4.29 user 16.12 sys ==== run-inet-any-reuseport ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1400866, close 177455, bind 262745, connect 140686, delroute 0 10.01 real 5.87 user 17.74 sys ==== run-inet-any-localnet-connect ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -c 6 -N 127.0.0.1/8 count: socket 1368622, close 96132, bind 29239, connect 245099, delroute 0 10.00 real 4.73 user 15.82 sys ==== run-inet-any-localnet-bind-connect ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -N 127.0.0.1/8 count: socket 1411425, close 77068, bind 203236, connect 119995, delroute 0 10.01 real 5.98 user 17.06 sys ==== run-inet-any-localnet-connect-delete ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 127.0.0.1/8 count: socket 1308874, close 74503, bind 0, connect 189610, delroute 91968 10.01 real 4.91 user 15.25 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1048602, close 172239, bind 1152235, connect 0, delroute 0 10.03 real 4.80 user 15.46 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1321278, close 148294, bind 0, connect 170514, delroute 0 10.02 real 4.49 user 18.59 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1091021, close 146649, bind 464091, connect 138253, delroute 0 10.11 real 4.11 user 16.10 sys ==== run-inet6-udp-100000 ==== doas -n time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 907226, close 160463, bind 69571, connect 90031, delroute 0 10.64 real 3.23 user 16.25 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1093855, close 203888, bind 364817, connect 140146, delroute 0 10.03 real 3.84 user 14.58 sys ==== run-inet6-udp-localnet-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -c 6 -N ::1/128 count: socket 1262968, close 141176, bind 58044, connect 160817, delroute 0 0m10.01s real 0m04.78s user 0m15.66s system ==== run-inet6-udp-localnet-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -N ::1/128 count: socket 1107872, close 219572, bind 403667, connect 133099, delroute 0 0m10.01s real 0m04.22s user 0m15.50s system ==== run-inet6-udp-localnet-connect-delete ==== doas -n time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N ::1/128 count: socket 805724, close 268683, bind 0, connect 205544, delroute 31284 10.01 real 2.50 user 18.26 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 838267, close 370264, bind 1862556, connect 0, delroute 0 10.02 real 4.11 user 16.78 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 833007, close 115827, bind 0, connect 1312317, delroute 0 10.01 real 4.11 user 15.07 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 823536, close 208952, bind 710883, connect 691753, delroute 0 10.01 real 3.58 user 15.38 sys ==== run-inet6-tcp-100000 ==== doas -n time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 158729, close 45669, bind 152164, connect 45950, delroute 0 10.77 real 0.80 user 11.73 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 769589, close 195379, bind 815748, connect 565838, delroute 0 10.01 real 3.62 user 15.32 sys ==== run-inet6-tcp-localnet-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -c 6 -N ::1/128 count: socket 757062, close 164190, bind 211889, connect 954375, delroute 0 0m10.01s real 0m03.49s user 0m15.41s system ==== run-inet6-tcp-localnet-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -N ::1/128 count: socket 783518, close 135902, bind 909933, connect 651779, delroute 0 0m10.01s real 0m03.61s user 0m15.15s system ==== run-inet6-tcp-localnet-connect-delete ==== doas -n time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N ::1/128 count: socket 384165, close 125098, bind 0, connect 626184, delroute 29935 10.02 real 2.33 user 16.90 sys ==== run-inet6-any-bind ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1097349, close 132595, bind 529690, connect 0, delroute 0 10.01 real 4.31 user 15.86 sys ==== run-inet6-any-connect ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1158287, close 53563, bind 0, connect 214334, delroute 0 10.01 real 5.08 user 17.24 sys ==== run-inet6-any-bind-connect ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1149764, close 49700, bind 86775, connect 57614, delroute 0 10.01 real 5.24 user 16.01 sys ==== run-inet6-any-100000 ==== doas -n time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1085980, close 30771, bind 128097, connect 73210, delroute 0 10.37 real 4.38 user 18.15 sys ==== run-inet6-any-reuseport ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1023097, close 88617, bind 252159, connect 146376, delroute 0 10.01 real 5.31 user 15.36 sys ==== run-inet6-any-localnet-connect ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -c 6 -N ::1/128 count: socket 1182535, close 36134, bind 33289, connect 157593, delroute 0 10.01 real 4.98 user 17.14 sys ==== run-inet6-any-localnet-bind-connect ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -N ::1/128 count: socket 1067875, close 102597, bind 213304, connect 118372, delroute 0 10.01 real 4.04 user 15.95 sys ==== run-inet6-any-localnet-connect-delete ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N ::1/128 count: socket 479708, close 256075, bind 0, connect 447368, delroute 46059 10.02 real 2.55 user 16.44 sys ==== cleanup-inet-delete ==== doas -n time ./bindconnect -f inet -s 0 -o 0 -b 0 -c 0 -d 1 -N 127.0.0.1/8 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 125875 1.00 real 0.12 user 0.80 sys ==== cleanup-inet6-delete ==== doas -n time ./bindconnect -f inet6 -s 0 -o 0 -b 0 -c 0 -d 1 -N ::1/128 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 8288 1.00 real 0.00 user 0.91 sys