==== 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 1630116, close 1650262, bind 408791, connect 287190, delroute 0 10.00 real 3.87 user 20.30 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1211629, close 531119, bind 3182430, connect 0, delroute 0 10.00 real 8.63 user 31.42 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 914537, close 161022, bind 0, connect 1261387, delroute 0 10.00 real 5.32 user 33.53 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1419431, close 114578, bind 738692, connect 540376, delroute 0 10.00 real 7.94 user 31.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 92519, close 16066, bind 70271, connect 60348, delroute 0 10.28 real 0.59 user 30.34 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1905115, close 44783, bind 77082, connect 57676, delroute 0 10.00 real 8.82 user 31.10 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 1746685, close 54988, bind 60657, connect 267125, delroute 0 10.00 real 8.39 user 31.22 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 1924695, close 29722, bind 66675, connect 47076, delroute 0 10.00 real 8.65 user 31.23 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 1899182, close 40922, bind 0, connect 63656, delroute 34510 10.01 real 8.60 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 1157694, close 149461, bind 292087, connect 0, delroute 0 10.00 real 6.54 user 32.09 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 899910, close 445929, bind 0, connect 364328, delroute 0 10.00 real 2.89 user 26.38 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 988121, close 410146, bind 234706, connect 169268, delroute 0 10.03 real 3.37 user 27.09 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 140728, close 86094, bind 148879, connect 121462, delroute 0 10.47 real 0.99 user 29.79 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1013875, close 177914, bind 261943, connect 211592, delroute 0 10.01 real 7.60 user 29.53 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 768590, close 336553, bind 113542, connect 455910, delroute 0 10.00 real 4.01 user 30.07 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 922493, close 274902, bind 309198, connect 193593, delroute 0 10.00 real 5.39 user 29.80 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 929585, close 295766, bind 0, connect 211328, delroute 199515 10.21 real 4.79 user 32.63 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 2026274, close 1088997, bind 756018, connect 0, delroute 0 10.01 real 5.29 user 34.65 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 2056346, close 257742, bind 0, connect 195390, delroute 0 10.01 real 8.74 user 31.29 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 1842003, close 539400, bind 375131, connect 282122, delroute 0 10.01 real 6.06 user 34.00 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 1739097, close 414468, bind 398295, connect 357709, delroute 0 10.51 real 6.27 user 33.57 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 1553145, close 871169, bind 488465, connect 383005, delroute 0 10.01 real 6.23 user 33.75 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 2033688, close 213590, bind 47552, connect 210936, delroute 0 10.01 real 8.33 user 31.65 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 1896624, close 606615, bind 327700, connect 270142, delroute 0 10.01 real 6.45 user 33.58 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 1879197, close 85665, bind 0, connect 88635, delroute 105438 10.01 real 8.04 user 32.13 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1821584, close 110444, bind 570851, connect 0, delroute 0 10.00 real 7.72 user 32.23 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1387372, close 167618, bind 0, connect 447932, delroute 0 10.00 real 7.07 user 31.18 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1828824, close 35115, bind 91139, connect 65430, delroute 0 10.00 real 8.52 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 85770, close 16404, bind 90725, connect 68295, delroute 0 10.30 real 0.60 user 30.40 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1828602, close 41293, bind 68484, connect 47867, delroute 0 10.01 real 8.76 user 30.97 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 1516015, close 103058, bind 67521, connect 358351, delroute 0 0m10.01s real 0m07.23s 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 1809410, close 55771, bind 100256, connect 69438, delroute 0 0m10.01s real 0m08.95s user 0m30.88s 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 224423, close 134931, bind 0, connect 19825, delroute 118008 10.00 real 0.97 user 19.51 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1119552, close 156943, bind 364942, connect 0, delroute 0 10.00 real 6.60 user 31.93 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 921724, close 348314, bind 0, connect 280439, delroute 0 10.00 real 2.58 user 25.32 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1001218, close 364190, bind 190380, connect 132134, delroute 0 10.00 real 1.90 user 24.44 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 148625, close 110665, bind 202596, connect 155462, delroute 0 10.56 real 0.91 user 29.54 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 865843, close 330657, bind 428624, connect 354260, delroute 0 10.00 real 7.27 user 28.88 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 913481, close 347638, bind 66428, connect 294891, delroute 0 0m10.01s real 0m02.17s user 0m24.53s 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 996381, close 356451, bind 185722, connect 128197, delroute 0 0m10.00s real 0m02.55s user 0m25.24s 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 186856, close 114717, bind 0, connect 1632, delroute 119182 10.00 real 0.99 user 17.53 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 1522608, close 489563, bind 713096, connect 0, delroute 0 10.01 real 5.56 user 34.43 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 1530328, close 28084, bind 0, connect 68985, delroute 0 10.01 real 8.30 user 31.73 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 1556501, close 68068, bind 84355, connect 63713, delroute 0 10.01 real 7.85 user 32.11 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 1539253, close 87997, bind 122582, connect 100214, delroute 0 10.44 real 8.56 user 30.85 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 1507724, close 93398, bind 85755, connect 69827, delroute 0 10.01 real 8.61 user 31.48 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 1511805, close 30400, bind 15975, connect 75947, delroute 0 10.00 real 8.31 user 31.74 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 1538421, close 72864, bind 93010, connect 74231, delroute 0 10.00 real 8.30 user 31.76 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 183634, close 132481, bind 0, connect 2718, delroute 123208 10.00 real 0.98 user 17.33 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 217548 1.01 real 0.17 user 0.85 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 16909 1.00 real 0.00 user 0.98 sys