==== 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 1282324, close 138143, bind 106715, connect 129910, delroute 0 10.01 real 7.17 user 19.38 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1539989, close 100660, bind 321060, connect 0, delroute 0 10.01 real 7.17 user 21.96 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1522145, close 37991, bind 0, connect 68714, delroute 0 10.01 real 6.54 user 21.56 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1277716, close 138358, bind 465257, connect 227941, delroute 0 10.01 real 4.93 user 16.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 1281948, close 73324, bind 49636, connect 42165, delroute 0 10.52 real 5.34 user 20.16 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1253891, close 73711, bind 431017, connect 220598, delroute 0 10.09 real 5.33 user 16.82 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 1379541, close 63682, bind 32198, connect 140158, delroute 0 10.11 real 5.57 user 17.99 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 1396047, close 87773, bind 324350, connect 80135, delroute 0 10.00 real 4.92 user 17.35 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 1368060, close 96864, bind 0, connect 206311, delroute 111540 10.00 real 4.93 user 17.61 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 959641, close 169395, bind 1530970, connect 0, delroute 0 10.01 real 3.28 user 17.63 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 866293, close 120485, bind 0, connect 1255643, delroute 0 10.01 real 3.99 user 15.12 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 906706, close 92514, bind 631429, connect 504896, delroute 0 10.01 real 3.43 user 16.42 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 181848, close 36569, bind 69058, connect 39753, delroute 0 10.83 real 1.19 user 12.61 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 815050, close 201816, bind 797088, connect 632203, delroute 0 10.02 real 3.61 user 15.24 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 731541, close 121425, bind 118164, connect 318598, delroute 0 10.01 real 3.62 user 16.04 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 841617, close 192786, bind 408416, connect 178132, delroute 0 10.03 real 3.12 user 17.60 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 734787, close 81717, bind 0, connect 177702, delroute 64230 10.01 real 3.38 user 15.36 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 1307263, close 163011, bind 701328, connect 0, delroute 0 10.02 real 3.78 user 14.92 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 1492372, close 42405, bind 0, connect 146785, delroute 0 10.00 real 3.35 user 16.40 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 1463246, close 89940, bind 155768, connect 115535, delroute 0 10.01 real 3.94 user 16.26 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 1306899, close 26204, bind 149162, connect 115236, delroute 0 10.42 real 5.75 user 18.20 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 1348639, close 91235, bind 231243, connect 117471, delroute 0 10.01 real 4.22 user 16.27 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 1464624, close 38795, bind 53396, connect 81835, delroute 0 10.01 real 4.70 user 16.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 1326021, close 72203, bind 281024, connect 124920, delroute 0 10.00 real 4.60 user 15.44 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 1401840, close 72997, bind 0, connect 98456, delroute 56275 10.01 real 4.79 user 16.60 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1194487, close 111554, bind 808057, connect 0, delroute 0 10.00 real 4.63 user 15.36 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1224241, close 143905, bind 0, connect 180065, delroute 0 10.01 real 4.45 user 16.21 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1082664, close 146120, bind 317134, connect 224477, delroute 0 10.01 real 4.70 user 15.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 886258, close 152853, bind 121727, connect 73969, delroute 0 10.58 real 3.08 user 15.48 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1169278, close 156157, bind 291881, connect 134514, delroute 0 10.01 real 4.45 user 15.67 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 1198032, close 104232, bind 65423, connect 143797, delroute 0 0m10.01s real 0m04.69s user 0m16.09s 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 1184239, close 72965, bind 312584, connect 99515, delroute 0 0m10.01s real 0m04.57s user 0m15.13s 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 763826, close 212514, bind 0, connect 144416, delroute 35176 10.00 real 2.30 user 18.78 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 885611, close 266676, bind 1765968, connect 0, delroute 0 10.01 real 3.46 user 17.80 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 884741, close 141458, bind 0, connect 1165459, delroute 0 10.01 real 3.40 user 15.55 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 803552, close 194229, bind 686121, connect 592306, delroute 0 10.01 real 3.72 user 15.10 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 156707, close 51101, bind 138079, connect 55203, delroute 0 10.71 real 0.69 user 12.07 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 756363, close 214705, bind 561481, connect 304302, delroute 0 10.01 real 3.54 user 15.36 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 838437, close 115110, bind 163314, connect 932795, delroute 0 0m10.02s real 0m03.34s user 0m15.64s 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 829693, close 185547, bind 638180, connect 452824, delroute 0 0m10.01s real 0m03.56s user 0m15.09s 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 452672, close 131957, bind 0, connect 663202, delroute 29579 10.01 real 2.21 user 16.70 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 1097633, close 170217, bind 579941, connect 0, delroute 0 10.01 real 4.14 user 16.79 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 1180249, close 66128, bind 0, connect 229802, delroute 0 10.01 real 4.82 user 15.39 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 1080272, close 83338, bind 163435, connect 90045, delroute 0 10.07 real 4.97 user 16.19 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 1087392, close 38783, bind 139119, connect 47464, delroute 0 10.53 real 4.53 user 18.00 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 1096156, close 82024, bind 234730, connect 120066, delroute 0 10.01 real 4.68 user 16.69 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 1163201, close 102073, bind 40773, connect 208466, delroute 0 10.05 real 4.91 user 17.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 1074368, close 66137, bind 247332, connect 177411, delroute 0 10.01 real 4.50 user 16.83 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 490721, close 181124, bind 0, connect 422281, delroute 45354 10.02 real 2.58 user 15.62 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 116809 1.02 real 0.15 user 0.72 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 7174 1.00 real 0.03 user 0.84 sys