==== 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 1230261, close 168013, bind 134295, connect 149264, delroute 0 10.01 real 6.05 user 18.75 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1317060, close 125782, bind 978010, connect 0, delroute 0 10.01 real 6.26 user 18.74 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1357462, close 114707, bind 0, connect 250291, delroute 0 10.01 real 5.38 user 18.12 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1407039, close 84546, bind 256579, connect 84608, delroute 0 10.02 real 5.56 user 17.93 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 956128, close 138700, bind 81245, connect 72325, delroute 0 10.60 real 2.94 user 17.88 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1264395, close 233029, bind 378674, connect 248407, delroute 0 10.02 real 4.77 user 15.96 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 1502332, close 70629, bind 46290, connect 95804, delroute 0 10.01 real 4.77 user 16.94 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 1412709, close 80336, bind 272344, connect 65051, delroute 0 10.01 real 4.53 user 17.70 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 1433427, close 50501, bind 0, connect 108850, delroute 59282 10.04 real 4.57 user 17.67 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 882910, close 281520, bind 1865122, connect 0, delroute 0 10.00 real 3.72 user 16.23 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 841443, close 197469, bind 0, connect 1621911, delroute 0 10.01 real 3.99 user 14.44 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 884675, close 208537, bind 724817, connect 562295, delroute 0 10.00 real 3.03 user 16.01 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 130939, close 17643, bind 78463, connect 34172, delroute 0 10.96 real 0.37 user 11.91 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 834089, close 233584, bind 706087, connect 711572, delroute 0 10.01 real 3.59 user 15.47 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 772784, close 77883, bind 115549, connect 277748, delroute 0 10.01 real 3.21 user 15.99 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 859794, close 140352, bind 479302, connect 255430, delroute 0 10.01 real 3.95 user 16.11 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 787153, close 71556, bind 0, connect 219041, delroute 100424 10.02 real 3.19 user 16.77 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 1453352, close 152366, bind 494828, connect 0, delroute 0 10.02 real 5.32 user 17.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 1497389, close 36313, bind 0, connect 145431, delroute 0 10.00 real 4.66 user 18.02 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 1389558, close 98913, bind 280272, connect 125503, delroute 0 10.01 real 5.34 user 16.84 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 1128457, close 36847, bind 241551, connect 122641, delroute 0 10.47 real 4.55 user 15.27 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 1383570, close 75251, bind 119326, connect 73776, delroute 0 10.01 real 5.55 user 17.65 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 1330773, close 56862, bind 39869, connect 164101, delroute 0 10.01 real 4.59 user 15.24 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 1327706, close 51515, bind 238970, connect 117273, delroute 0 10.02 real 4.47 user 15.98 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 1427344, close 38397, bind 0, connect 140601, delroute 83623 10.08 real 3.90 user 15.51 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1180757, close 97352, bind 1097082, connect 0, delroute 0 10.01 real 5.19 user 16.51 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1295007, close 206177, bind 0, connect 168900, delroute 0 10.00 real 4.42 user 17.48 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1223860, close 209654, bind 309914, connect 87629, delroute 0 10.01 real 4.37 user 16.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 1026138, close 130174, bind 93078, connect 51022, delroute 0 10.59 real 4.02 user 16.72 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1170834, close 132566, bind 338278, connect 139550, delroute 0 10.02 real 4.67 user 16.11 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 1324247, close 118380, bind 64425, connect 95706, delroute 0 0m10.01s real 0m04.36s user 0m16.68s 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 1228367, close 183233, bind 302909, connect 95678, delroute 0 0m10.01s real 0m04.31s user 0m16.31s 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 784394, close 286193, bind 0, connect 167064, delroute 31774 10.04 real 2.27 user 18.26 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 768933, close 358630, bind 2148899, connect 0, delroute 0 10.01 real 3.63 user 15.12 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 707067, close 188005, bind 0, connect 1514397, delroute 0 10.11 real 3.72 user 12.65 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 770226, close 197014, bind 1014586, connect 690820, delroute 0 10.01 real 3.30 user 15.28 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 170104, close 63228, bind 135250, connect 56313, delroute 0 10.73 real 0.87 user 11.73 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 730449, close 138616, bind 605541, connect 314003, delroute 0 10.01 real 3.21 user 15.96 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 708662, close 139197, bind 204952, connect 1051803, delroute 0 0m10.02s real 0m03.68s user 0m14.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 807693, close 192622, bind 693802, connect 541861, delroute 0 0m10.01s real 0m03.47s user 0m14.97s 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 401307, close 138668, bind 0, connect 600193, delroute 29769 10.01 real 2.03 user 17.35 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 1221452, close 80797, bind 551092, connect 0, delroute 0 10.02 real 4.86 user 20.73 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 1158579, close 65764, bind 0, connect 235407, delroute 0 10.01 real 4.53 user 16.56 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 1058126, close 105469, bind 267898, connect 211205, delroute 0 10.01 real 4.72 user 16.91 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 1013165, close 28762, bind 177777, connect 80082, delroute 0 10.54 real 4.58 user 16.23 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 1038550, close 104696, bind 244941, connect 144398, delroute 0 10.02 real 4.48 user 16.22 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 1183428, close 29993, bind 63410, connect 170345, delroute 0 10.10 real 4.50 user 17.48 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 1103076, close 84070, bind 223135, connect 178473, delroute 0 10.01 real 5.65 user 17.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 446895, close 125601, bind 0, connect 250684, delroute 53613 10.02 real 2.19 user 15.80 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 132364 1.01 real 0.13 user 0.84 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 8014 1.01 real 0.03 user 0.93 sys