==== 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 944481, close 445138, bind 894278, connect 732011, delroute 0 10.00 real 4.89 user 26.81 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1800514, close 29959, bind 2223601, connect 0, delroute 0 10.00 real 10.69 user 29.24 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1491438, close 73962, bind 0, connect 797366, delroute 0 10.00 real 8.11 user 30.47 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1917111, close 41586, bind 348099, connect 213889, delroute 0 10.00 real 9.43 user 30.33 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 134348, close 6020, bind 72716, connect 73036, delroute 0 10.40 real 0.57 user 27.63 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 2214095, close 24998, bind 179426, connect 64622, delroute 0 10.00 real 9.49 user 30.43 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 2065154, close 26112, bind 38176, connect 160425, delroute 0 10.00 real 9.19 user 30.50 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 2163303, close 10856, bind 149319, connect 59825, delroute 0 10.00 real 8.99 user 30.88 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 2154524, close 14183, bind 0, connect 37994, delroute 11963 10.01 real 8.93 user 31.08 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1028052, close 31558, bind 142997, connect 0, delroute 0 10.00 real 10.37 user 28.92 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 797057, close 144460, bind 0, connect 642830, delroute 0 10.00 real 7.68 user 27.98 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 864811, close 100542, bind 314929, connect 214098, delroute 0 10.00 real 8.84 user 28.24 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 105894, close 6996, bind 64892, connect 30389, delroute 0 10.49 real 0.58 user 24.58 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 862176, close 134546, bind 347895, connect 239520, delroute 0 10.00 real 8.70 user 28.92 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 670560, close 138497, bind 200800, connect 536002, delroute 0 10.00 real 6.63 user 30.05 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 798183, close 120714, bind 494198, connect 205305, delroute 0 10.00 real 8.25 user 29.32 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 796453, close 133944, bind 0, connect 273736, delroute 61824 10.01 real 8.15 user 29.78 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 1669104, close 507655, bind 2811935, connect 0, delroute 0 10.01 real 9.22 user 30.77 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 2210517, close 4862, bind 0, connect 16586, delroute 0 10.01 real 9.39 user 30.55 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 2129207, close 5681, bind 80655, connect 61101, delroute 0 10.01 real 9.35 user 30.61 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 2019977, close 8286, bind 342380, connect 113766, delroute 0 10.19 real 9.36 user 30.64 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 1837091, close 37318, bind 50991, connect 42807, delroute 0 10.01 real 9.73 user 30.25 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 1991473, close 3661, bind 2870, connect 13418, delroute 0 10.01 real 10.35 user 29.69 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 2163818, close 5603, bind 8614, connect 7059, delroute 0 10.01 real 9.76 user 30.23 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 2013634, close 2640, bind 0, connect 10146, delroute 7295 10.01 real 9.14 user 30.88 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 2086763, close 5450, bind 393952, connect 0, delroute 0 10.00 real 8.64 user 31.34 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1769590, close 49372, bind 0, connect 334842, delroute 0 10.00 real 7.93 user 31.15 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 2120922, close 15247, bind 75466, connect 38997, delroute 0 10.00 real 9.53 user 30.26 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 105971, close 2983, bind 126113, connect 79394, delroute 0 10.31 real 0.65 user 30.58 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 2065663, close 26621, bind 88508, connect 47217, delroute 0 10.00 real 9.44 user 30.31 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 1877620, close 33137, bind 47196, connect 205026, delroute 0 0m10.00s real 0m09.05s user 0m30.48s 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 2159224, close 22137, bind 121331, connect 57334, delroute 0 0m10.00s real 0m09.60s user 0m30.02s 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 172364, close 720695, bind 0, connect 1063181, delroute 79572 10.00 real 4.78 user 24.84 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1010363, close 30637, bind 160311, connect 0, delroute 0 10.00 real 10.18 user 28.91 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 699703, close 162026, bind 0, connect 704636, delroute 0 10.00 real 7.20 user 27.20 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 750030, close 157444, bind 475034, connect 288399, delroute 0 10.00 real 7.58 user 27.94 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 106752, close 6075, bind 72680, connect 42438, delroute 0 10.51 real 0.44 user 22.85 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 842344, close 151010, bind 317883, connect 237081, delroute 0 10.01 real 9.03 user 28.71 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 736465, close 140221, bind 124863, connect 563358, delroute 0 0m10.00s real 0m07.98s user 0m27.25s 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 750804, close 153763, bind 455000, connect 283771, delroute 0 0m10.01s real 0m07.17s user 0m28.19s 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 148006, close 1130674, bind 0, connect 1445701, delroute 72823 10.00 real 6.55 user 23.14 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 2168749, close 4742, bind 35562, connect 0, delroute 0 10.01 real 10.26 user 29.81 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 1813309, close 7943, bind 0, connect 49632, delroute 0 10.01 real 8.80 user 31.19 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 1703524, close 6274, bind 26337, connect 18619, delroute 0 10.01 real 8.97 user 30.99 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 1706901, close 9268, bind 65555, connect 91789, delroute 0 10.27 real 8.77 user 31.14 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 1695252, close 20485, bind 40818, connect 31310, delroute 0 10.01 real 9.44 user 30.44 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 1828580, close 4855, bind 8786, connect 37277, delroute 0 10.00 real 9.32 user 30.69 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 1883441, close 5398, bind 30817, connect 24560, delroute 0 10.00 real 9.44 user 30.62 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 141789, close 831803, bind 0, connect 1746835, delroute 88550 10.04 real 7.42 user 24.47 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 200596 1.00 real 0.16 user 0.85 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 16646 1.00 real 0.01 user 1.01 sys