==== 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 1255367, close 126427, bind 83693, connect 155845, delroute 0 10.01 real 7.13 user 19.87 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1515205, close 57546, bind 478288, connect 0, delroute 0 10.01 real 6.76 user 22.42 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1575504, close 48864, bind 0, connect 83903, delroute 0 10.03 real 7.35 user 22.21 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1347885, close 123357, bind 268247, connect 182205, delroute 0 10.01 real 5.00 user 18.28 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 1263842, close 106802, bind 58814, connect 53925, delroute 0 10.56 real 5.61 user 19.95 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1281521, close 93256, bind 329108, connect 166445, delroute 0 10.01 real 4.47 user 16.92 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 1325536, close 65506, bind 109404, connect 156071, delroute 0 10.02 real 5.58 user 17.19 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 1304640, close 133421, bind 253161, connect 166572, delroute 0 10.01 real 5.17 user 16.56 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 1445663, close 75751, bind 0, connect 180788, delroute 93507 10.02 real 5.31 user 17.76 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 924014, close 199227, bind 1764164, connect 0, delroute 0 10.01 real 3.30 user 16.61 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 886238, close 127814, bind 0, connect 1255441, delroute 0 10.01 real 3.70 user 16.04 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 926489, close 138152, bind 554356, connect 477826, delroute 0 10.02 real 3.71 user 16.50 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 139447, close 40453, bind 130857, connect 46594, delroute 0 10.94 real 0.68 user 12.23 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 792599, close 168097, bind 791489, connect 718953, delroute 0 10.01 real 3.81 user 14.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 788091, close 86265, bind 66538, connect 221792, delroute 0 10.03 real 3.75 user 15.88 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 788449, close 122441, bind 474403, connect 218871, delroute 0 10.01 real 3.34 user 16.10 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 717194, close 83390, bind 0, connect 280104, delroute 94104 10.01 real 2.96 user 16.04 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 1419720, close 141689, bind 490436, connect 0, delroute 0 10.03 real 4.22 user 16.19 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 1554001, close 27960, bind 0, connect 107765, delroute 0 10.01 real 4.30 user 17.28 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 1612131, close 58968, bind 43712, connect 40787, delroute 0 10.01 real 5.02 user 19.02 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 1341420, close 49974, bind 68694, connect 45841, delroute 0 10.44 real 5.57 user 17.79 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 1339687, close 111926, bind 156238, connect 79903, delroute 0 10.01 real 4.89 user 16.87 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 1435887, close 18354, bind 49032, connect 136238, delroute 0 10.01 real 5.79 user 17.92 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 1376048, close 117748, bind 267926, connect 163517, delroute 0 10.01 real 5.21 user 16.56 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 1414739, close 37655, bind 0, connect 123025, delroute 46490 10.04 real 5.25 user 17.73 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1352121, close 114552, bind 635457, connect 0, delroute 0 10.02 real 5.26 user 16.29 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1165911, close 209747, bind 0, connect 236151, delroute 0 10.00 real 4.67 user 15.55 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1105297, close 158146, bind 305704, connect 96741, delroute 0 10.03 real 3.88 user 14.54 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 719562, close 123937, bind 68672, connect 57007, delroute 0 10.59 real 2.46 user 14.85 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1129032, close 185720, bind 366497, connect 154223, delroute 0 10.01 real 4.29 user 15.49 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 1158691, close 184648, bind 108647, connect 238158, delroute 0 0m10.05s real 0m04.45s user 0m15.61s 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 1319228, close 87119, bind 258625, connect 94391, delroute 0 0m10.05s real 0m05.02s user 0m17.16s 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 724147, close 176650, bind 0, connect 163159, delroute 38699 10.04 real 2.39 user 18.97 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 883967, close 231191, bind 1828217, connect 0, delroute 0 10.02 real 3.74 user 17.49 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 791957, close 146159, bind 0, connect 1312586, delroute 0 10.01 real 3.67 user 14.87 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 775217, close 224315, bind 921196, connect 720050, delroute 0 10.01 real 3.86 user 15.06 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 175093, close 45531, bind 117752, connect 45461, delroute 0 10.80 real 0.90 user 11.42 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 782972, close 186891, bind 690632, connect 464698, delroute 0 10.03 real 3.21 user 16.01 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 752587, close 137750, bind 236985, connect 1136965, delroute 0 0m10.01s real 0m04.01s user 0m15.03s 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 816106, close 212844, bind 761671, connect 622677, delroute 0 0m10.00s real 0m03.57s user 0m15.97s 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 397471, close 139811, bind 0, connect 707574, delroute 30017 10.01 real 2.28 user 16.81 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 975017, close 204071, bind 1009814, connect 0, delroute 0 10.02 real 4.40 user 15.90 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 1150182, close 73174, bind 0, connect 228710, delroute 0 10.04 real 4.97 user 16.68 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 1189021, close 80919, bind 229698, connect 77214, delroute 0 10.08 real 4.38 user 16.94 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 1045146, close 30227, bind 216255, connect 51866, delroute 0 10.49 real 4.24 user 16.86 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 1197257, close 80973, bind 184367, connect 114707, delroute 0 10.01 real 4.34 user 17.85 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 1146954, close 68370, bind 75762, connect 298123, delroute 0 10.01 real 3.97 user 16.48 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 1116394, close 98663, bind 210377, connect 156411, delroute 0 10.02 real 4.60 user 16.49 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 437735, close 203721, bind 0, connect 657612, delroute 45877 10.01 real 2.40 user 15.05 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 118547 1.00 real 0.13 user 0.70 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 7939 1.01 real 0.04 user 0.86 sys