==== 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 958783, close 541014, bind 1090884, connect 673354, delroute 0 10.00 real 4.70 user 29.11 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1698013, close 30095, bind 1492449, connect 0, delroute 0 10.00 real 10.62 user 29.43 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1358925, close 86674, bind 0, connect 845382, delroute 0 10.00 real 7.61 user 30.68 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1816061, close 48235, bind 434783, connect 257013, delroute 0 10.00 real 8.94 user 30.85 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 175848, close 8839, bind 53172, connect 79415, delroute 0 10.40 real 0.81 user 25.71 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 2156285, close 24070, bind 132575, connect 62639, delroute 0 10.00 real 9.72 user 30.34 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 2023421, close 23970, bind 35098, connect 138203, delroute 0 10.00 real 9.03 user 30.79 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 2122603, close 10006, bind 76609, connect 37354, delroute 0 10.00 real 9.35 user 30.59 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 2119066, close 11137, bind 0, connect 28651, delroute 9472 10.01 real 9.72 user 30.35 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1014757, close 30155, bind 135290, connect 0, delroute 0 10.00 real 9.52 user 29.71 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 776902, close 144337, bind 0, connect 668231, delroute 0 10.00 real 7.39 user 28.28 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 878330, close 83606, bind 265501, connect 183000, delroute 0 10.00 real 8.19 user 29.28 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 106604, close 7059, bind 66122, connect 47179, delroute 0 10.55 real 0.58 user 23.75 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 853862, close 122161, bind 311704, connect 224875, delroute 0 10.01 real 8.79 user 28.79 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 621638, close 154589, bind 213495, connect 593899, delroute 0 10.00 real 6.15 user 30.25 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 788255, close 130562, bind 528747, connect 218830, delroute 0 10.00 real 7.45 user 29.88 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 796684, close 130785, bind 0, connect 261267, delroute 60180 10.01 real 7.74 user 29.96 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 2151163, close 5302, bind 16054, connect 0, delroute 0 10.01 real 9.06 user 31.00 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 2100701, close 5898, bind 0, connect 28528, delroute 0 10.01 real 9.22 user 30.75 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 2166681, close 10804, bind 16028, connect 12345, delroute 0 10.01 real 10.27 user 29.66 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 1926686, close 11988, bind 142785, connect 150102, delroute 0 10.29 real 8.82 user 31.10 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 1942620, close 26778, bind 42942, connect 31312, delroute 0 10.00 real 8.54 user 31.56 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 2221623, close 4524, bind 6164, connect 26272, delroute 0 10.01 real 9.42 user 30.46 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 2074577, close 6737, bind 20952, connect 16452, delroute 0 10.01 real 9.52 user 30.50 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 2019750, close 3842, bind 0, connect 15769, delroute 10775 10.01 real 9.34 user 30.68 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 2116121, close 2996, bind 326208, connect 0, delroute 0 10.00 real 8.96 user 30.98 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1648559, close 47388, bind 0, connect 331740, delroute 0 10.00 real 7.80 user 31.24 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1968963, close 14594, bind 74899, connect 35943, delroute 0 10.00 real 8.86 user 31.04 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 101310, close 1908, bind 60882, connect 104474, delroute 0 10.34 real 0.36 user 26.86 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1918022, close 27370, bind 91348, connect 49015, delroute 0 10.01 real 9.10 user 30.88 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 1754013, close 39113, bind 54514, connect 243812, delroute 0 0m10.01s real 0m09.02s user 0m30.45s 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 2019456, close 17001, bind 94501, connect 42578, delroute 0 0m10.00s real 0m08.99s user 0m30.83s 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 173417, close 753683, bind 0, connect 1094475, delroute 80113 10.00 real 5.53 user 24.66 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 991850, close 40915, bind 201409, connect 0, delroute 0 10.00 real 9.67 user 29.31 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 686079, close 171187, bind 0, connect 747877, delroute 0 10.00 real 6.56 user 27.11 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 731482, close 153079, bind 454956, connect 280885, delroute 0 10.00 real 7.47 user 27.58 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 101939, close 5608, bind 106948, connect 73285, delroute 0 10.57 real 0.55 user 24.99 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 819603, close 165510, bind 350384, connect 255799, delroute 0 10.01 real 8.87 user 28.44 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 723380, close 152759, bind 138448, connect 621326, delroute 0 0m10.01s real 0m07.30s user 0m27.83s 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 724669, close 166056, bind 490122, connect 302811, delroute 0 0m10.00s real 0m07.21s user 0m27.66s 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 130363, close 1269755, bind 0, connect 1581476, delroute 73839 10.00 real 5.41 user 21.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 2121526, close 2971, bind 154154, connect 0, delroute 0 10.01 real 10.09 user 29.94 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 1802593, close 6875, bind 0, connect 55613, delroute 0 10.01 real 9.40 user 30.65 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 1724090, close 4903, bind 29247, connect 19296, delroute 0 10.01 real 8.78 user 31.17 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 1852938, close 7628, bind 134930, connect 49942, delroute 0 10.22 real 9.44 user 30.57 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 1641226, close 25974, bind 42534, connect 38316, delroute 0 10.01 real 8.41 user 31.46 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 1795356, close 4668, bind 7862, connect 31067, delroute 0 10.00 real 8.70 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 1717568, close 4599, bind 50701, connect 35246, delroute 0 10.00 real 8.93 user 31.04 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 145139, close 870675, bind 0, connect 1532482, delroute 89243 10.00 real 5.88 user 24.77 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 215627 1.01 real 0.18 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 15410 1.00 real 0.01 user 1.00 sys