==== 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 1749330, close 1856905, bind 394603, connect 253750, delroute 0 10.00 real 3.87 user 20.22 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1150970, close 515351, bind 3473049, connect 0, delroute 0 10.00 real 8.27 user 31.77 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 886457, close 160559, bind 0, connect 1261130, delroute 0 10.00 real 5.40 user 32.84 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1544085, close 114149, bind 721631, connect 456075, delroute 0 10.00 real 8.83 user 31.01 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 99287, close 18412, bind 87458, connect 66146, delroute 0 10.36 real 0.70 user 30.11 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1921551, close 42494, bind 73219, connect 56185, delroute 0 10.00 real 8.88 user 30.90 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 1696527, close 60706, bind 68018, connect 289134, delroute 0 10.00 real 7.97 user 31.66 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 1938489, close 34469, bind 70915, connect 49721, delroute 0 10.00 real 8.98 user 31.05 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 1966252, close 34632, bind 0, connect 47084, delroute 29016 10.01 real 8.94 user 31.05 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1174613, close 142231, bind 273716, connect 0, delroute 0 10.00 real 6.66 user 31.87 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 890431, close 438661, bind 0, connect 362410, delroute 0 10.00 real 2.88 user 26.65 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 961732, close 390566, bind 228856, connect 172469, delroute 0 10.00 real 3.24 user 27.31 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 113351, close 72399, bind 153189, connect 118369, delroute 0 10.56 real 0.86 user 28.13 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1000382, close 202684, bind 306120, connect 242633, delroute 0 10.00 real 7.56 user 29.51 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 812753, close 323376, bind 105095, connect 421019, delroute 0 10.00 real 4.22 user 30.02 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 910988, close 301914, bind 339437, connect 210056, delroute 0 10.00 real 4.43 user 30.79 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 904229, close 302140, bind 0, connect 203966, delroute 195594 10.01 real 4.89 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 1810175, close 558342, bind 950717, connect 0, delroute 0 10.01 real 4.76 user 35.17 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 1966414, close 258723, bind 0, connect 247026, delroute 0 10.01 real 7.76 user 32.16 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 1841833, close 596337, bind 376104, connect 318330, delroute 0 10.01 real 5.97 user 34.21 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 1769160, close 467725, bind 371817, connect 356407, delroute 0 10.42 real 6.21 user 33.39 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 1561949, close 900249, bind 529866, connect 455411, delroute 0 10.01 real 6.17 user 34.00 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 1859818, close 234050, bind 55759, connect 249643, delroute 0 10.01 real 7.81 user 32.24 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 1988754, close 854680, bind 368573, connect 231831, delroute 0 10.01 real 6.13 user 33.92 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 1930874, close 77189, bind 0, connect 61274, delroute 89138 10.01 real 8.63 user 31.37 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1808063, close 139271, bind 465306, connect 0, delroute 0 10.00 real 7.37 user 32.58 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1265757, close 148510, bind 0, connect 532647, delroute 0 10.00 real 6.18 user 31.25 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1800643, close 55528, bind 89114, connect 66415, delroute 0 10.00 real 8.68 user 30.74 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 81154, close 16712, bind 94106, connect 68941, delroute 0 10.24 real 0.79 user 31.75 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1797458, close 30290, bind 57913, connect 42161, delroute 0 10.00 real 9.02 user 30.89 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 1473276, close 120867, bind 69730, connect 398585, delroute 0 0m10.00s real 0m07.41s user 0m30.88s 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 1858056, close 58235, bind 77883, connect 58436, delroute 0 0m10.00s real 0m08.96s user 0m30.67s 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 215490, close 134662, bind 0, connect 22015, delroute 116999 10.00 real 1.17 user 19.12 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1148990, close 130000, bind 253140, connect 0, delroute 0 10.00 real 6.84 user 31.66 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 850557, close 395521, bind 0, connect 351950, delroute 0 10.00 real 2.27 user 25.08 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 919814, close 408360, bind 221046, connect 161086, delroute 0 10.00 real 2.60 user 25.91 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 111647, close 67619, bind 148910, connect 112677, delroute 0 10.54 real 0.83 user 28.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 944617, close 258190, bind 335821, connect 276691, delroute 0 10.01 real 7.98 user 29.22 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 844805, close 392740, bind 69916, connect 329589, delroute 0 0m10.00s real 0m02.68s user 0m25.64s 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 922309, close 419500, bind 226035, connect 159682, delroute 0 0m10.01s real 0m02.58s user 0m25.70s 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 181561, close 116798, bind 0, connect 1841, delroute 119133 10.00 real 0.74 user 17.46 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 1473250, close 390327, bind 714945, connect 0, delroute 0 10.01 real 4.36 user 35.75 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 1580210, close 26235, bind 0, connect 66640, delroute 0 10.01 real 8.39 user 31.59 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 1600222, close 59106, bind 69519, connect 53590, delroute 0 10.01 real 8.37 user 31.53 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 1536975, close 92062, bind 128010, connect 103453, delroute 0 10.34 real 8.00 user 31.42 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 1590387, close 101377, bind 88658, connect 71869, delroute 0 10.00 real 9.11 user 30.94 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 1534448, close 28313, bind 14651, connect 71097, delroute 0 10.00 real 8.52 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 1528982, close 68015, bind 80280, connect 63781, delroute 0 10.00 real 8.10 user 31.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 183958, close 129909, bind 0, connect 2948, delroute 121083 10.00 real 0.86 user 18.25 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 215467 1.01 real 0.15 user 0.84 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 16707 1.00 real 0.02 user 1.00 sys