==== 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 1418765, close 1497048, bind 598762, connect 401591, delroute 0 10.01 real 4.14 user 22.76 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1113775, close 492524, bind 3542770, connect 0, delroute 0 10.00 real 8.48 user 31.40 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1202277, close 139691, bind 0, connect 895223, delroute 0 10.00 real 6.17 user 33.18 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1930168, close 44167, bind 128189, connect 96495, delroute 0 10.00 real 9.22 user 30.67 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 95755, close 22815, bind 88502, connect 75071, delroute 0 10.30 real 0.54 user 31.29 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1897094, close 48212, bind 93428, connect 70858, delroute 0 10.01 real 9.10 user 30.86 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 1704549, close 62734, bind 64711, connect 273057, delroute 0 10.00 real 8.04 user 31.59 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 1918093, close 29147, bind 60801, connect 47223, delroute 0 10.00 real 8.54 user 31.26 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 1904581, close 49871, bind 0, connect 75797, delroute 40570 10.01 real 8.23 user 31.71 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1178580, close 141836, bind 274825, connect 0, delroute 0 10.00 real 6.45 user 32.58 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 925061, close 418959, bind 0, connect 327115, delroute 0 10.00 real 2.81 user 26.26 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 971188, close 418304, bind 224134, connect 166129, delroute 0 10.00 real 3.20 user 26.59 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 138887, close 85201, bind 152315, connect 120781, delroute 0 10.46 real 0.99 user 30.08 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1036879, close 172139, bind 246187, connect 199143, delroute 0 10.01 real 7.93 user 29.00 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 761350, close 330912, bind 108838, connect 432218, delroute 0 10.00 real 4.01 user 30.06 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 909055, close 302613, bind 311895, connect 201638, delroute 0 10.00 real 4.85 user 30.01 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 863928, close 325685, bind 0, connect 219856, delroute 208198 10.01 real 4.54 user 32.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 1815853, close 517024, bind 908961, connect 0, delroute 0 10.01 real 5.36 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 1956012, close 252162, bind 0, connect 242679, delroute 0 10.01 real 8.37 user 31.63 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 1955014, close 610187, bind 292069, connect 222471, delroute 0 10.01 real 6.61 user 33.38 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 1678309, close 438746, bind 434120, connect 358115, delroute 0 10.41 real 5.66 user 33.91 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 1595355, close 837959, bind 569954, connect 288548, delroute 0 10.00 real 6.66 user 33.43 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 1946509, close 214598, bind 54336, connect 230519, delroute 0 10.01 real 7.98 user 32.10 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 1875086, close 576990, bind 355073, connect 271480, delroute 0 10.01 real 6.62 user 33.43 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 1948835, close 62819, bind 0, connect 67878, delroute 91393 10.01 real 8.82 user 31.15 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1833406, close 128944, bind 419092, connect 0, delroute 0 10.00 real 7.67 user 32.34 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1407455, close 121292, bind 0, connect 457755, delroute 0 10.00 real 7.28 user 30.95 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1822562, close 39966, bind 94677, connect 69088, delroute 0 10.00 real 8.79 user 30.92 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 86617, close 17920, bind 90296, connect 64926, delroute 0 10.36 real 0.60 user 31.90 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1823920, close 30545, bind 66663, connect 48198, delroute 0 10.01 real 9.20 user 30.59 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 1434932, close 131890, bind 77328, connect 424448, delroute 0 0m10.00s real 0m06.90s user 0m31.65s 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 1794957, close 41939, bind 105260, connect 74903, delroute 0 0m10.00s real 0m08.33s user 0m31.45s 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 237109, close 136928, bind 0, connect 22250, delroute 116379 10.00 real 1.03 user 19.53 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1144835, close 130517, bind 250821, connect 0, delroute 0 10.00 real 6.82 user 31.86 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 928742, close 360467, bind 0, connect 277509, delroute 0 10.00 real 2.00 user 24.09 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 968807, close 387260, bind 201173, connect 134895, delroute 0 10.00 real 2.33 user 25.08 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 152578, close 116292, bind 217176, connect 167294, delroute 0 10.60 real 0.89 user 29.30 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 893181, close 319515, bind 392556, connect 335645, delroute 0 10.01 real 7.14 user 28.99 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 926400, close 335775, bind 57104, connect 271320, delroute 0 0m10.00s real 0m02.23s user 0m24.61s 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 971592, close 385864, bind 197659, connect 138905, delroute 0 0m10.01s real 0m02.22s 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 189123, close 115924, bind 0, connect 1434, delroute 117963 10.00 real 0.89 user 17.64 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 1516862, close 477987, bind 688627, connect 0, delroute 0 10.01 real 5.86 user 34.16 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 1604557, close 23477, bind 0, connect 58505, delroute 0 10.01 real 8.65 user 31.26 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 1540330, close 63251, bind 71448, connect 56324, delroute 0 10.01 real 7.95 user 32.14 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 1537604, close 97062, bind 127122, connect 90498, delroute 0 10.37 real 8.54 user 30.76 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 1586232, close 70569, bind 62855, connect 49775, delroute 0 10.00 real 8.78 user 31.30 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 1579259, close 31444, bind 15352, connect 71788, delroute 0 10.00 real 8.51 user 31.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 1555885, close 62841, bind 73418, connect 57640, delroute 0 10.00 real 7.84 user 32.25 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 184598, close 131221, bind 0, connect 2824, delroute 121747 10.00 real 1.09 user 18.23 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 223623 1.01 real 0.14 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 15654 1.00 real 0.01 user 0.99 sys