==== 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 832086, close 381703, bind 757461, connect 817022, delroute 0 10.01 real 4.43 user 24.65 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1727460, close 25967, bind 1544498, connect 0, delroute 0 10.00 real 10.61 user 29.37 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1840876, close 37095, bind 0, connect 330944, delroute 0 10.00 real 8.37 user 31.42 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 2170337, close 12934, bind 141402, connect 71325, delroute 0 10.00 real 9.44 user 30.36 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 101566, close 6847, bind 48564, connect 81559, delroute 0 10.29 real 0.42 user 28.45 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 2085555, close 19379, bind 73956, connect 44300, delroute 0 10.01 real 9.25 user 30.78 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 2043328, close 22359, bind 31653, connect 129738, delroute 0 10.00 real 9.48 user 30.35 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 2202044, close 8359, bind 112736, connect 47569, delroute 0 10.00 real 9.22 user 30.74 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 2142029, close 9960, bind 0, connect 26125, delroute 8837 10.01 real 9.40 user 30.66 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1022456, close 37803, bind 189339, connect 0, delroute 0 10.00 real 9.56 user 29.30 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 804369, close 127714, bind 0, connect 584430, delroute 0 10.00 real 7.89 user 28.08 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 882869, close 94013, bind 299419, connect 197742, delroute 0 10.00 real 8.77 user 28.43 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 103633, close 5596, bind 104193, connect 70583, delroute 0 10.56 real 0.50 user 22.35 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 882765, close 112480, bind 291522, connect 210579, delroute 0 10.01 real 8.97 user 28.61 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 718376, close 121314, bind 169521, connect 464116, delroute 0 10.00 real 6.89 user 30.66 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 809932, close 127543, bind 512794, connect 212270, delroute 0 10.00 real 7.45 user 30.04 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 788751, close 150136, bind 0, connect 299794, delroute 66506 10.01 real 8.07 user 29.64 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 2040038, close 154109, bind 809587, connect 0, delroute 0 10.01 real 9.31 user 30.60 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 2163032, close 4614, bind 0, connect 31453, delroute 0 10.01 real 9.28 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 2093647, close 10970, bind 50784, connect 37680, delroute 0 10.01 real 10.32 user 29.70 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 2244345, close 8893, bind 40290, connect 36361, delroute 0 10.25 real 9.44 user 30.59 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 2172656, close 30162, bind 38607, connect 34346, delroute 0 10.00 real 9.57 user 30.64 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 2174821, close 3938, bind 8758, connect 32201, delroute 0 10.01 real 9.35 user 30.59 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 2101097, close 6290, bind 11768, connect 10263, delroute 0 10.01 real 9.02 user 31.00 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 2092864, close 2828, bind 0, connect 15007, delroute 8621 10.01 real 9.42 user 30.57 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1955751, close 1638, bind 1211775, connect 0, delroute 0 10.00 real 9.40 user 30.64 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1698453, close 49010, bind 0, connect 362801, delroute 0 10.00 real 7.70 user 31.06 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 2060751, close 15171, bind 75287, connect 38961, delroute 0 10.00 real 9.62 user 30.34 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 222465, close 1304, bind 120208, connect 61883, delroute 0 10.45 real 0.86 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 2018138, close 18241, bind 61856, connect 34107, delroute 0 10.00 real 10.07 user 29.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 1830967, close 31602, bind 42087, connect 197088, delroute 0 0m10.00s real 0m08.51s user 0m30.90s 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 2084521, close 13535, bind 74272, connect 36711, delroute 0 0m10.00s real 0m09.20s user 0m30.56s 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 197465, close 664834, bind 0, connect 966185, delroute 79020 10.00 real 4.83 user 24.55 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1017122, close 29969, bind 142706, connect 0, delroute 0 10.00 real 9.93 user 29.20 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 744185, close 137530, bind 0, connect 587389, delroute 0 10.00 real 7.74 user 27.28 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 732939, close 161467, bind 482600, connect 300453, delroute 0 10.00 real 7.30 user 28.03 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 102930, close 3412, bind 109324, connect 36412, delroute 0 10.63 real 0.54 user 25.88 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 832252, close 169803, bind 368914, connect 267346, delroute 0 10.01 real 8.48 user 28.85 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 718541, close 153100, bind 136012, connect 632974, delroute 0 0m10.00s real 0m07.50s user 0m27.67s 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 733917, close 166426, bind 492241, connect 306221, delroute 0 0m10.00s real 0m07.29s user 0m27.80s 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 140289, close 989552, bind 0, connect 1238930, delroute 75647 10.00 real 5.18 user 22.72 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 2033496, close 2386, bind 86529, connect 0, delroute 0 10.07 real 9.87 user 30.37 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 1888431, close 7287, bind 0, connect 46313, delroute 0 10.04 real 9.41 user 30.77 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 1824625, close 4696, bind 42336, connect 25525, delroute 0 10.01 real 8.73 user 31.31 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 1780341, close 5187, bind 129333, connect 61596, delroute 0 10.29 real 8.91 user 31.21 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 1702805, close 38867, bind 78716, connect 52120, delroute 0 10.00 real 8.93 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 1761671, close 5621, bind 9236, connect 40437, delroute 0 10.00 real 9.06 user 30.97 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 1894603, close 3929, bind 25693, connect 13373, delroute 0 10.00 real 9.48 user 30.44 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 145238, close 862844, bind 0, connect 1508974, delroute 89743 10.00 real 5.62 user 24.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 214172 1.00 real 0.20 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 16390 1.00 real 0.01 user 0.98 sys