==== 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 828005, close 933664, bind 1066011, connect 669081, delroute 0 10.00 real 4.40 user 30.11 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1130539, close 621483, bind 3840001, connect 0, delroute 0 10.00 real 8.80 user 31.27 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1419788, close 106984, bind 0, connect 681389, delroute 0 10.00 real 6.79 user 32.42 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1935047, close 34713, bind 92891, connect 67863, delroute 0 10.00 real 8.74 user 31.18 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 85111, close 17486, bind 82015, connect 69210, delroute 0 10.22 real 0.70 user 30.20 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1943011, close 48454, bind 85520, connect 56278, delroute 0 10.01 real 9.32 user 30.80 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 1725985, close 60878, bind 75263, connect 309548, delroute 0 10.00 real 8.58 user 30.95 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 1998893, close 30618, bind 66985, connect 45905, delroute 0 10.00 real 9.67 user 30.21 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 1899130, close 67060, bind 0, connect 69132, delroute 41879 10.01 real 8.43 user 31.44 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1195509, close 161165, bind 323021, connect 0, delroute 0 10.00 real 6.52 user 32.21 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 937828, close 392783, bind 0, connect 317281, delroute 0 10.00 real 3.10 user 26.02 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 974256, close 423294, bind 232934, connect 166891, delroute 0 10.00 real 3.30 user 27.35 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 118356, close 72958, bind 150012, connect 115449, delroute 0 10.54 real 0.97 user 29.19 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1022313, close 196324, bind 286858, connect 226598, delroute 0 10.01 real 8.10 user 29.52 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 786529, close 343491, bind 109933, connect 443538, delroute 0 10.00 real 3.91 user 30.55 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 959045, close 256245, bind 272186, connect 172567, delroute 0 10.00 real 5.51 user 30.53 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 915666, close 308052, bind 0, connect 203741, delroute 191062 10.02 real 5.03 user 31.84 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 2004941, close 958016, bind 855124, connect 0, delroute 0 10.01 real 5.31 user 34.70 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 1945916, close 280314, bind 0, connect 272523, delroute 0 10.01 real 7.60 user 32.44 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 1841562, close 568822, bind 380857, connect 274785, delroute 0 10.01 real 6.21 user 33.92 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 1757749, close 472566, bind 406030, connect 369500, delroute 0 10.49 real 6.03 user 33.74 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 1554987, close 1003671, bind 500457, connect 385152, delroute 0 10.00 real 6.22 user 33.79 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 1971216, close 260442, bind 61854, connect 286613, delroute 0 10.01 real 8.36 user 31.59 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 1896206, close 694878, bind 394772, connect 307587, delroute 0 10.01 real 6.07 user 34.04 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 2025768, close 57820, bind 0, connect 50477, delroute 65550 10.01 real 9.00 user 31.03 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1892466, close 142370, bind 410034, connect 0, delroute 0 10.00 real 8.26 user 31.78 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1386444, close 145001, bind 0, connect 484501, delroute 0 10.00 real 6.64 user 31.51 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1814344, close 67136, bind 100046, connect 74057, delroute 0 10.00 real 8.47 user 31.00 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 79612, close 19245, bind 99592, connect 72682, delroute 0 10.32 real 0.60 user 32.31 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1859117, close 36228, bind 61942, connect 42373, delroute 0 10.00 real 8.85 user 31.12 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 1398102, close 144567, bind 89298, connect 478438, delroute 0 0m10.01s real 0m06.65s user 0m31.70s 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 1785504, close 48400, bind 103829, connect 77197, delroute 0 0m10.00s real 0m08.39s user 0m31.25s 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 240897, close 147030, bind 0, connect 26802, delroute 116041 10.00 real 1.00 user 19.68 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1153834, close 129418, bind 275968, connect 0, delroute 0 10.00 real 6.99 user 31.51 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 927750, close 352611, bind 0, connect 286386, delroute 0 10.00 real 2.16 user 24.00 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1025002, close 314465, bind 171333, connect 120156, delroute 0 10.00 real 2.62 user 24.45 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 115108, close 70559, bind 152927, connect 110273, delroute 0 10.44 real 0.96 user 28.48 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 913743, close 289622, bind 369236, connect 308419, delroute 0 10.00 real 7.31 user 29.05 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 901258, close 355299, bind 62478, connect 295932, delroute 0 0m10.01s real 0m02.53s user 0m25.17s 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 1016573, close 330089, bind 183346, connect 127755, delroute 0 0m10.01s real 0m02.35s user 0m24.76s 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 188317, close 118053, bind 0, connect 2113, delroute 118983 10.00 real 0.86 user 17.51 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 1519815, close 447723, bind 771199, connect 0, delroute 0 10.01 real 5.03 user 34.96 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 1626243, close 30436, bind 0, connect 77750, delroute 0 10.01 real 8.89 user 31.15 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 1610712, close 64214, bind 72448, connect 57091, delroute 0 10.01 real 8.90 user 31.03 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 1576905, close 100749, bind 145110, connect 110237, delroute 0 10.43 real 8.16 user 31.61 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 1573652, close 90607, bind 83986, connect 65132, delroute 0 10.00 real 8.42 user 31.66 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 1562959, close 30905, bind 15819, connect 72080, delroute 0 10.00 real 8.47 user 31.41 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 1582710, close 53989, bind 75311, connect 59458, delroute 0 10.00 real 8.46 user 31.65 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 188529, close 140707, bind 0, connect 3475, delroute 121192 10.00 real 0.92 user 18.54 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 216842 1.01 real 0.21 user 0.79 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 16639 1.00 real 0.03 user 0.96 sys