==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || doas -n sysctl kern.maxfiles=110000 kern.maxfiles: 7030 -> 110000 ==== run-default ==== cc -O2 -pipe -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 1196720, close 113971, bind 79804, connect 213179, delroute 0 10.01 real 6.65 user 20.43 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1514049, close 58681, bind 424844, connect 0, delroute 0 10.00 real 7.38 user 22.22 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1505735, close 76513, bind 0, connect 149674, delroute 0 10.01 real 5.88 user 21.75 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1349530, close 87265, bind 309904, connect 96470, delroute 0 10.00 real 5.83 user 17.89 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 1200330, close 105747, bind 53442, connect 47568, delroute 0 10.62 real 4.86 user 19.66 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1245010, close 153532, bind 532142, connect 375307, delroute 0 10.02 real 5.38 user 16.72 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 1311605, close 65290, bind 67606, connect 162070, delroute 0 10.03 real 4.84 user 16.13 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 1348820, close 101885, bind 278830, connect 71016, delroute 0 10.01 real 4.95 user 15.70 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 1461900, close 59234, bind 0, connect 141721, delroute 53145 10.02 real 5.04 user 17.69 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 979378, close 208280, bind 1630349, connect 0, delroute 0 10.01 real 3.44 user 18.58 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 905398, close 92220, bind 0, connect 1320953, delroute 0 10.01 real 4.01 user 16.17 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 852259, close 224923, bind 715329, connect 469953, delroute 0 10.02 real 3.43 user 15.39 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 129595, close 25946, bind 92367, connect 41391, delroute 0 10.70 real 0.73 user 12.34 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 842311, close 218532, bind 722794, connect 775102, delroute 0 10.00 real 3.63 user 15.61 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 806690, close 52043, bind 94638, connect 188018, delroute 0 10.03 real 2.91 user 16.71 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 792170, close 124425, bind 556939, connect 274927, delroute 0 10.06 real 3.33 user 15.64 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 714007, close 124205, bind 0, connect 271875, delroute 105047 10.01 real 3.01 user 15.75 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 1423096, close 240873, bind 443974, connect 0, delroute 0 10.01 real 3.94 user 15.36 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 1375151, close 44806, bind 0, connect 241513, delroute 0 10.01 real 5.77 user 17.54 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 1480266, close 94515, bind 169080, connect 104153, delroute 0 10.01 real 5.32 user 17.71 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 1189062, close 50461, bind 174969, connect 104320, delroute 0 10.51 real 3.85 user 15.64 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 1233325, close 158068, bind 237697, connect 196399, delroute 0 10.01 real 4.55 user 14.47 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 1375032, close 53081, bind 61615, connect 182618, delroute 0 10.01 real 5.19 user 16.48 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 1472853, close 100632, bind 134210, connect 65955, delroute 0 10.01 real 5.03 user 17.90 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 1343871, close 62740, bind 0, connect 153012, delroute 80280 10.01 real 5.22 user 18.01 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1182436, close 114854, bind 1014038, connect 0, delroute 0 10.01 real 5.57 user 17.21 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1262659, close 238762, bind 0, connect 125327, delroute 0 10.02 real 4.11 user 17.20 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1215611, close 156004, bind 299133, connect 107367, delroute 0 10.01 real 4.25 user 16.40 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 1131136, close 131938, bind 51322, connect 58070, delroute 0 10.60 real 3.81 user 17.82 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1189869, close 215719, bind 271360, connect 137778, delroute 0 10.02 real 4.54 user 16.19 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 1275854, close 160283, bind 90652, connect 175581, delroute 0 0m10.01s real 0m04.39s user 0m17.01s 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 1139600, close 346149, bind 514595, connect 156501, delroute 0 0m10.02s real 0m04.28s user 0m14.60s 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 621468, close 354526, bind 0, connect 239688, delroute 30419 10.01 real 2.17 user 15.07 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 785406, close 258213, bind 1914064, connect 0, delroute 0 10.01 real 3.38 user 15.13 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 795868, close 246803, bind 0, connect 1445629, delroute 0 10.01 real 3.82 user 14.57 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 771322, close 230856, bind 712141, connect 768185, delroute 0 10.01 real 3.62 user 14.33 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 176686, close 63683, bind 131763, connect 51252, delroute 0 10.78 real 0.83 user 12.09 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 762247, close 145074, bind 816278, connect 501530, delroute 0 10.00 real 3.83 user 16.19 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 690509, close 147408, bind 183945, connect 1040060, delroute 0 0m10.02s real 0m03.44s user 0m15.40s 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 803612, close 201497, bind 820159, connect 562405, delroute 0 0m10.01s real 0m03.86s user 0m15.01s 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 342742, close 128279, bind 0, connect 693427, delroute 30926 10.01 real 2.37 user 16.89 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 1047240, close 179315, bind 586606, connect 0, delroute 0 10.11 real 4.63 user 15.04 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 1121577, close 40561, bind 0, connect 172081, delroute 0 10.01 real 5.56 user 17.07 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 1142734, close 52743, bind 166662, connect 71995, delroute 0 10.01 real 5.62 user 16.84 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 960285, close 42691, bind 225263, connect 107913, delroute 0 10.54 real 4.00 user 15.31 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 1094074, close 81674, bind 219287, connect 153595, delroute 0 10.01 real 5.62 user 18.18 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 1124483, close 60656, bind 66818, connect 269097, delroute 0 10.04 real 4.74 user 16.52 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 1020379, close 101731, bind 219184, connect 133132, delroute 0 10.01 real 4.90 user 15.01 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 452547, close 135856, bind 0, connect 479074, delroute 50067 10.01 real 2.66 user 15.58 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 130460 1.01 real 0.08 user 0.88 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 7982 1.01 real 0.00 user 0.93 sys