==== 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 1248719, close 116640, bind 115272, connect 152865, delroute 0 10.01 real 7.16 user 19.45 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1516985, close 61096, bind 369454, connect 0, delroute 0 10.01 real 7.43 user 21.48 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1598309, close 83719, bind 0, connect 62295, delroute 0 10.02 real 7.56 user 23.22 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1301980, close 208003, bind 391220, connect 194910, delroute 0 10.00 real 4.84 user 16.40 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 1278407, close 119197, bind 62026, connect 53401, delroute 0 10.57 real 4.97 user 19.70 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1259510, close 103864, bind 537301, connect 156755, delroute 0 10.48 real 4.48 user 17.63 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 1423742, close 104682, bind 110694, connect 139539, delroute 0 10.02 real 4.61 user 17.04 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 1304636, close 134015, bind 267172, connect 103439, delroute 0 10.01 real 4.69 user 15.87 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 1521323, close 93519, bind 0, connect 139624, delroute 69154 10.01 real 5.34 user 18.66 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 915467, close 240502, bind 1977815, connect 0, delroute 0 10.00 real 4.05 user 17.46 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 886014, close 178085, bind 0, connect 1233592, delroute 0 10.01 real 4.28 user 15.79 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 810000, close 234495, bind 751816, connect 630296, delroute 0 10.01 real 3.71 user 15.03 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 131231, close 27185, bind 103289, connect 34689, delroute 0 10.94 real 0.74 user 11.97 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 890307, close 115128, bind 809462, connect 652039, delroute 0 10.00 real 3.19 user 16.52 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 768433, close 114429, bind 90033, connect 324707, delroute 0 10.01 real 3.38 user 15.91 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 828160, close 147473, bind 480244, connect 196484, delroute 0 10.00 real 3.43 user 16.37 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 727337, close 72819, bind 0, connect 287310, delroute 74703 10.02 real 3.45 user 15.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 1409549, close 64094, bind 467767, connect 0, delroute 0 10.01 real 4.02 user 14.88 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 1527495, close 32166, bind 0, connect 99686, delroute 0 10.01 real 5.31 user 19.03 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 1299264, close 76442, bind 251648, connect 193967, delroute 0 10.01 real 4.23 user 14.85 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 1134902, close 50171, bind 220568, connect 142950, delroute 0 10.58 real 4.05 user 15.41 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 1255552, close 57151, bind 301016, connect 142026, delroute 0 10.01 real 4.50 user 15.84 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 1473378, close 49135, bind 22110, connect 74223, delroute 0 10.01 real 5.67 user 16.95 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 1298689, close 96863, bind 183857, connect 99105, delroute 0 10.01 real 4.53 user 14.61 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 1363267, close 59509, bind 0, connect 147584, delroute 70667 10.01 real 4.25 user 15.92 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1368945, close 122677, bind 587204, connect 0, delroute 0 10.02 real 5.04 user 17.41 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1304153, close 165594, bind 0, connect 139728, delroute 0 10.00 real 4.16 user 17.68 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1306486, close 120751, bind 218385, connect 72029, delroute 0 10.01 real 4.15 user 16.87 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 1074711, close 130790, bind 53413, connect 64684, delroute 0 10.61 real 3.96 user 16.90 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1084930, close 170300, bind 409786, connect 132540, delroute 0 10.01 real 4.47 user 15.08 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 1260942, close 201513, bind 100262, connect 219211, delroute 0 0m10.02s real 0m04.42s user 0m16.61s 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 1105538, close 219071, bind 400796, connect 151985, delroute 0 0m10.12s real 0m04.24s user 0m14.85s 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 679506, close 254284, bind 0, connect 235008, delroute 36042 10.01 real 2.53 user 17.44 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 753111, close 393416, bind 2060907, connect 0, delroute 0 10.03 real 3.89 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 730644, close 130202, bind 0, connect 1507123, delroute 0 10.02 real 3.99 user 13.48 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 828344, close 137356, bind 725920, connect 572608, delroute 0 10.01 real 3.96 user 16.55 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 181935, close 60287, bind 128241, connect 51140, delroute 0 10.74 real 0.76 user 12.02 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 720639, close 233806, bind 849248, connect 667546, delroute 0 10.01 real 4.11 user 14.58 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 826658, close 126573, bind 215975, connect 1272367, delroute 0 0m10.01s real 0m03.64s user 0m15.37s 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 823057, close 142264, bind 734203, connect 524127, delroute 0 0m10.01s real 0m03.78s user 0m15.28s 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 380402, close 125240, bind 0, connect 668747, delroute 28722 10.01 real 2.52 user 16.64 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 1074364, close 119394, bind 621776, connect 0, delroute 0 10.01 real 3.98 user 17.11 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 1205017, close 37346, bind 0, connect 146833, delroute 0 10.00 real 4.64 user 17.90 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 1086634, close 105312, bind 229283, connect 113525, delroute 0 10.01 real 4.70 user 16.59 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 990082, close 25753, bind 227744, connect 89260, delroute 0 10.50 real 4.98 user 17.29 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 1055106, close 99248, bind 254036, connect 166693, delroute 0 10.01 real 4.59 user 15.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 1080827, close 81989, bind 49862, connect 302593, delroute 0 10.02 real 4.97 user 16.98 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 1089459, close 81311, bind 335131, connect 146242, delroute 0 10.00 real 4.45 user 16.11 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 497259, close 140747, bind 0, connect 319838, delroute 48282 10.01 real 2.16 user 15.31 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 128398 1.00 real 0.13 user 0.83 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 8121 1.01 real 0.00 user 1.02 sys