==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || doas -n sysctl kern.maxfiles=110000 kern.maxfiles: 7030 -> 110000 ==== run-default ==== cc -O2 -pipe -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 965159, close 193509, bind 178755, connect 140305, delroute 0 10.01 real 5.50 user 16.94 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1454284, close 106756, bind 581141, connect 0, delroute 0 10.02 real 6.89 user 22.11 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1460354, close 103258, bind 0, connect 148673, delroute 0 10.01 real 5.85 user 18.95 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1322554, close 150348, bind 373880, connect 249163, delroute 0 10.00 real 5.99 user 18.41 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 1037361, close 126964, bind 68726, connect 78884, delroute 0 10.68 real 4.18 user 17.72 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1199921, close 101201, bind 544427, connect 231510, delroute 0 10.02 real 5.12 user 16.00 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 1420850, close 81317, bind 44445, connect 115093, delroute 0 10.01 real 5.53 user 17.62 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 1350407, close 65375, bind 259598, connect 82369, delroute 0 10.01 real 4.84 user 16.01 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 1428827, close 83782, bind 0, connect 96502, delroute 80485 10.08 real 4.88 user 16.61 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 907408, close 245003, bind 1768337, connect 0, delroute 0 10.01 real 3.57 user 16.92 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 868204, close 109274, bind 0, connect 1218283, delroute 0 10.02 real 4.27 user 16.58 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 931934, close 176995, bind 587526, connect 560160, delroute 0 10.01 real 3.29 user 16.35 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 187763, close 42212, bind 114246, connect 45317, delroute 0 10.86 real 1.00 user 12.78 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 805254, close 109742, bind 581037, connect 378558, delroute 0 10.02 real 3.39 user 15.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 761757, close 70604, bind 114937, connect 280434, delroute 0 10.00 real 3.61 user 16.52 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 841689, close 110100, bind 274177, connect 160319, delroute 0 10.01 real 3.32 user 16.78 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 750006, close 115034, bind 0, connect 207639, delroute 64823 10.04 real 3.40 user 15.71 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 1426130, close 77495, bind 944182, connect 0, delroute 0 10.01 real 5.39 user 15.84 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 1531393, close 59070, bind 0, connect 113568, delroute 0 10.01 real 3.51 user 16.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 1340959, close 153619, bind 345175, connect 163129, delroute 0 10.05 real 6.12 user 16.71 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 1193358, close 45472, bind 215005, connect 139538, delroute 0 10.54 real 4.67 user 17.45 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 1309964, close 109178, bind 214461, connect 142805, delroute 0 10.02 real 5.20 user 15.47 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 1555054, close 41598, bind 37240, connect 105894, delroute 0 10.01 real 4.37 user 17.12 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 1342970, close 91349, bind 266637, connect 120975, delroute 0 10.02 real 5.67 user 16.87 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 1296054, close 104837, bind 0, connect 178361, delroute 91651 10.02 real 5.79 user 17.57 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1287720, close 160351, bind 854571, connect 0, delroute 0 10.02 real 5.19 user 16.55 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1247009, close 145582, bind 0, connect 167777, delroute 0 10.06 real 4.23 user 16.57 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1279421, close 94263, bind 227614, connect 116947, delroute 0 10.01 real 4.85 user 15.96 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 1016128, close 167672, bind 114610, connect 65579, delroute 0 10.63 real 3.51 user 18.17 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1277331, close 140366, bind 265257, connect 93467, delroute 0 10.01 real 4.73 user 17.37 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 1210913, close 80863, bind 192562, connect 107604, delroute 0 0m10.07s real 0m04.40s user 0m15.62s 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 1102700, close 249330, bind 413305, connect 191234, delroute 0 0m10.02s real 0m04.10s user 0m14.81s 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 732609, close 256652, bind 0, connect 149607, delroute 32826 10.01 real 2.11 user 17.31 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 862627, close 242855, bind 1681311, connect 0, delroute 0 10.01 real 3.19 user 16.02 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 767103, close 113406, bind 0, connect 1305970, delroute 0 10.02 real 4.00 user 14.31 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 846221, close 169644, bind 697519, connect 581931, delroute 0 10.00 real 3.16 user 15.85 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 198449, close 62707, bind 150273, connect 53141, delroute 0 10.90 real 0.91 user 12.22 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 779372, close 146823, bind 654551, connect 469682, delroute 0 10.01 real 3.40 user 15.82 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 788961, close 129785, bind 154536, connect 845263, delroute 0 0m10.01s real 0m02.99s user 0m16.30s 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 830258, close 180037, bind 680291, connect 470961, delroute 0 0m10.02s real 0m03.64s user 0m15.60s 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 348208, close 183419, bind 0, connect 696965, delroute 32027 10.02 real 2.62 user 16.80 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 1023322, close 52056, bind 745162, connect 0, delroute 0 10.01 real 5.78 user 16.15 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 1156059, close 49661, bind 0, connect 187983, delroute 0 10.01 real 5.12 user 16.86 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 1197051, close 36815, bind 128853, connect 73047, delroute 0 10.02 real 5.28 user 17.01 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 1026438, close 42606, bind 150184, connect 93287, delroute 0 10.53 real 5.36 user 16.58 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 1145341, close 85114, bind 129390, connect 93348, delroute 0 10.02 real 5.76 user 16.92 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 1105682, close 33215, bind 32454, connect 209778, delroute 0 10.03 real 5.03 user 15.07 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 1164288, close 85414, bind 221455, connect 104509, delroute 0 10.00 real 5.26 user 17.38 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 481498, close 191905, bind 0, connect 474388, delroute 43298 10.00 real 2.22 user 15.08 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 115447 1.01 real 0.12 user 0.78 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 8104 1.01 real 0.01 user 0.99 sys