==== 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 915832, close 345630, bind 708024, connect 787076, delroute 0 10.00 real 5.17 user 23.87 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1827200, close 18759, bind 2267882, connect 0, delroute 0 10.00 real 10.82 user 29.15 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1946416, close 36707, bind 0, connect 323292, delroute 0 10.00 real 8.78 user 30.76 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 2099536, close 13825, bind 130671, connect 67849, delroute 0 10.00 real 9.17 user 30.81 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 147061, close 3780, bind 79456, connect 70012, delroute 0 10.35 real 0.59 user 26.93 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 2104727, close 29263, bind 110267, connect 51467, delroute 0 10.01 real 9.57 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 2061291, close 25736, bind 36523, connect 150276, delroute 0 10.00 real 9.28 user 30.67 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 2231038, close 9163, bind 175615, connect 58763, delroute 0 10.00 real 9.56 user 30.46 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 2127018, close 12034, bind 0, connect 31984, delroute 11817 10.06 real 9.00 user 31.37 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1024950, close 40714, bind 177889, connect 0, delroute 0 10.00 real 9.60 user 29.37 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 749440, close 159957, bind 0, connect 736243, delroute 0 10.00 real 7.72 user 27.64 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 808193, close 131888, bind 428823, connect 279018, delroute 0 10.00 real 7.95 user 28.48 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 108376, close 9612, bind 69955, connect 33387, delroute 0 10.49 real 0.55 user 26.23 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 837117, close 148690, bind 367746, connect 265304, delroute 0 10.00 real 9.01 user 28.29 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 676920, close 132709, bind 188252, connect 516891, delroute 0 10.00 real 6.80 user 30.01 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 769983, close 132415, bind 545316, connect 229147, delroute 0 10.00 real 7.52 user 29.51 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 789224, close 140569, bind 0, connect 279984, delroute 61755 10.01 real 7.37 user 30.66 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 1558787, close 492483, bind 1673045, connect 0, delroute 0 10.01 real 10.56 user 29.50 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 2240674, close 5351, bind 0, connect 17566, delroute 0 10.01 real 9.92 user 30.14 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 2047057, close 15083, bind 58515, connect 42519, delroute 0 10.01 real 10.29 user 29.81 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 2149222, close 18499, bind 29939, connect 48334, delroute 0 10.16 real 9.87 user 30.17 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 2186309, close 23128, bind 37032, connect 28437, delroute 0 10.01 real 9.84 user 30.30 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 1972877, close 6343, bind 5567, connect 25964, delroute 0 10.01 real 10.54 user 29.52 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 2177462, close 8079, bind 56053, connect 32302, delroute 0 10.02 real 9.75 user 30.29 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 2219235, close 3953, bind 0, connect 18649, delroute 10796 10.04 real 9.58 user 30.64 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 2340015, close 3599, bind 1053096, connect 0, delroute 0 10.00 real 9.72 user 30.26 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1669226, close 52721, bind 0, connect 375573, delroute 0 10.00 real 8.31 user 30.54 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 2119921, close 18697, bind 101722, connect 48044, delroute 0 10.02 real 9.62 user 30.42 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 157143, close 2355, bind 46499, connect 62723, delroute 0 10.37 real 0.60 user 26.07 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1977337, close 25374, bind 80776, connect 42908, delroute 0 10.00 real 9.77 user 30.22 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 1859563, close 34191, bind 45565, connect 201751, delroute 0 0m10.00s real 0m08.88s user 0m30.75s 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 2064120, close 19968, bind 103273, connect 50015, delroute 0 0m10.00s real 0m09.48s user 0m30.22s 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 182389, close 764862, bind 0, connect 1099371, delroute 78890 10.00 real 5.18 user 23.93 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 994462, close 42038, bind 205539, connect 0, delroute 0 10.00 real 10.24 user 28.96 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 647093, close 196795, bind 0, connect 864337, delroute 0 10.00 real 6.60 user 26.51 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 770908, close 135245, bind 404127, connect 248071, delroute 0 10.00 real 7.71 user 28.35 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 111546, close 7658, bind 73062, connect 75054, delroute 0 10.57 real 0.55 user 24.78 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 853205, close 128915, bind 276025, connect 200608, delroute 0 10.00 real 9.21 user 28.51 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 728287, close 141845, bind 130800, connect 588357, delroute 0 0m10.00s real 0m07.27s user 0m27.99s 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 726499, close 162450, bind 481675, connect 297707, delroute 0 0m10.00s real 0m07.43s 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 130216, close 1255729, bind 0, connect 1593866, delroute 73291 10.00 real 6.07 user 22.67 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 1848654, close 37394, bind 265168, connect 0, delroute 0 10.01 real 9.07 user 30.84 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 1855502, close 5973, bind 0, connect 45255, delroute 0 10.01 real 10.03 user 30.06 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 1872531, close 5640, bind 39887, connect 24196, delroute 0 10.01 real 9.29 user 30.69 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 1793697, close 10063, bind 46547, connect 39730, delroute 0 10.18 real 9.39 user 30.49 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 1770067, close 28980, bind 62003, connect 46242, delroute 0 10.00 real 8.46 user 31.47 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 1812035, close 4956, bind 8716, connect 36682, delroute 0 10.00 real 9.20 user 30.72 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 1761585, close 5563, bind 42196, connect 23850, delroute 0 10.00 real 8.86 user 31.17 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 155779, close 885938, bind 0, connect 1544951, delroute 88617 10.00 real 6.08 user 24.86 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 217664 1.00 real 0.21 user 0.80 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 16534 1.00 real 0.00 user 1.01 sys