==== 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 1658295, close 1716944, bind 417540, connect 293564, delroute 0 10.01 real 3.74 user 20.57 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1452231, close 407689, bind 2124996, connect 0, delroute 0 10.00 real 8.01 user 32.12 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1405620, close 125514, bind 0, connect 655059, delroute 0 10.00 real 7.25 user 31.82 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1935970, close 31442, bind 74811, connect 53827, delroute 0 10.00 real 8.73 user 31.25 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 90508, close 19397, bind 82533, connect 65760, delroute 0 10.21 real 0.57 user 29.89 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1910562, close 43590, bind 77051, connect 54794, delroute 0 10.00 real 9.22 user 30.65 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 1711001, close 58834, bind 63749, connect 262066, delroute 0 10.00 real 8.48 user 31.15 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 1986462, close 28792, bind 63100, connect 44473, delroute 0 10.00 real 9.09 user 30.63 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 1884124, close 50913, bind 0, connect 71656, delroute 39379 10.01 real 8.32 user 31.66 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1189284, close 112697, bind 211111, connect 0, delroute 0 10.00 real 6.98 user 31.66 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 897089, close 432259, bind 0, connect 352892, delroute 0 10.00 real 3.19 user 26.75 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 958767, close 418818, bind 229841, connect 171389, delroute 0 10.00 real 3.40 user 28.06 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 141853, close 100886, bind 176029, connect 145923, delroute 0 10.47 real 0.99 user 30.28 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 979504, close 191967, bind 288983, connect 230419, delroute 0 10.00 real 7.39 user 30.06 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 810598, close 296097, bind 96987, connect 387741, delroute 0 10.00 real 4.53 user 30.55 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 916789, close 299018, bind 312303, connect 203113, delroute 0 10.00 real 5.23 user 30.19 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 872380, close 338588, bind 0, connect 228571, delroute 219763 10.01 real 4.08 user 32.28 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 1779258, close 505665, bind 979239, connect 0, delroute 0 10.01 real 5.13 user 34.92 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 1987713, close 207967, bind 0, connect 214975, delroute 0 10.01 real 8.34 user 31.60 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 1959880, close 585144, bind 325820, connect 249263, delroute 0 10.01 real 6.50 user 33.52 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 1727938, close 392248, bind 372320, connect 357251, delroute 0 10.50 real 5.98 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 1554102, close 873072, bind 399834, connect 370121, delroute 0 10.00 real 6.35 user 33.53 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 1913449, close 182021, bind 61046, connect 239848, delroute 0 10.01 real 7.87 user 32.28 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 1872875, close 518648, bind 322353, connect 273775, delroute 0 10.01 real 6.95 user 33.05 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 1962303, close 87314, bind 0, connect 88368, delroute 112350 10.01 real 8.66 user 31.36 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1794062, close 93252, bind 475487, connect 0, delroute 0 10.00 real 7.92 user 32.06 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1430546, close 136857, bind 0, connect 440222, delroute 0 10.00 real 7.30 user 30.94 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1806371, close 38288, bind 104447, connect 74420, delroute 0 10.00 real 8.41 user 31.21 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 83282, close 21541, bind 100029, connect 73025, delroute 0 10.29 real 0.60 user 32.04 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1802712, close 37265, bind 82296, connect 57191, delroute 0 10.01 real 8.60 user 31.39 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 1466263, close 104025, bind 70674, connect 382217, delroute 0 0m10.00s real 0m06.90s user 0m31.63s 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 1782138, close 42065, bind 107140, connect 77299, delroute 0 0m10.00s real 0m08.19s user 0m31.48s 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 256233, close 154623, bind 0, connect 21648, delroute 115701 10.00 real 1.38 user 19.24 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1140579, close 137537, bind 270742, connect 0, delroute 0 10.00 real 6.77 user 31.80 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 918021, close 372136, bind 0, connect 292029, delroute 0 10.00 real 2.86 user 24.25 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 963556, close 415426, bind 197148, connect 140952, delroute 0 10.00 real 2.43 user 24.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 142738, close 88469, bind 159294, connect 124219, delroute 0 10.51 real 0.96 user 30.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 878371, close 288323, bind 377934, connect 311806, delroute 0 10.01 real 7.60 user 28.25 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 869887, close 399033, bind 69786, connect 318158, delroute 0 0m10.00s real 0m02.35s user 0m24.72s 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 998837, close 356476, bind 178914, connect 124340, delroute 0 0m10.00s real 0m02.22s user 0m25.16s 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 183700, close 111627, bind 0, connect 1836, delroute 118413 10.00 real 0.69 user 17.70 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 1458392, close 412111, bind 841767, connect 0, delroute 0 10.01 real 4.52 user 35.51 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 1634946, close 24251, bind 0, connect 63548, delroute 0 10.01 real 8.79 user 31.24 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 1575292, close 65202, bind 80244, connect 61164, delroute 0 10.01 real 8.11 user 31.95 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 1569317, close 73409, bind 111866, connect 81692, delroute 0 10.40 real 8.12 user 31.47 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 1575540, close 96353, bind 99832, connect 73038, delroute 0 10.00 real 8.44 user 31.65 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 1569984, close 24810, bind 13137, connect 64177, delroute 0 10.00 real 8.66 user 31.23 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 1583360, close 55877, bind 67115, connect 53050, delroute 0 10.00 real 8.87 user 31.21 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 186879, close 128746, bind 0, connect 3522, delroute 120822 10.00 real 1.05 user 17.96 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 221206 1.01 real 0.19 user 0.82 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 16204 1.00 real 0.01 user 1.00 sys