==== 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 1295930, close 1418850, bind 766367, connect 502789, delroute 0 10.01 real 4.44 user 24.49 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1119575, close 547733, bind 3765427, connect 0, delroute 0 10.00 real 9.36 user 30.70 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 796054, close 165781, bind 0, connect 1386740, delroute 0 10.00 real 5.00 user 33.58 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1904437, close 42201, bind 146283, connect 106390, delroute 0 10.00 real 8.82 user 31.03 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 91520, close 18477, bind 70784, connect 62552, delroute 0 10.29 real 0.61 user 31.17 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1928451, close 48140, bind 101314, connect 76672, delroute 0 10.00 real 9.45 user 30.56 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 1655584, close 70969, bind 87055, connect 358470, delroute 0 10.00 real 8.19 user 31.52 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 1972558, close 32182, bind 69715, connect 48026, delroute 0 10.00 real 9.05 user 30.93 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 1910795, close 39760, bind 0, connect 55818, delroute 34838 10.01 real 8.79 user 31.16 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1163470, close 160674, bind 320693, connect 0, delroute 0 10.00 real 6.44 user 32.18 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 916075, close 415719, bind 0, connect 350156, delroute 0 10.00 real 2.51 user 25.43 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 974803, close 418855, bind 240726, connect 169462, delroute 0 10.00 real 2.89 user 26.52 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 141785, close 102261, bind 186395, connect 149880, delroute 0 10.70 real 0.83 user 30.32 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1016649, close 170376, bind 260790, connect 204779, delroute 0 10.01 real 7.34 user 29.88 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 770316, close 341403, bind 113020, connect 445219, delroute 0 10.00 real 3.98 user 29.96 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 970221, close 267097, bind 294590, connect 182649, delroute 0 10.08 real 4.88 user 30.50 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 872654, close 324803, bind 0, connect 217616, delroute 212298 10.01 real 4.46 user 32.05 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 1873518, close 642402, bind 1025711, connect 0, delroute 0 10.01 real 4.80 user 35.31 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 1977991, close 244229, bind 0, connect 235871, delroute 0 10.01 real 8.14 user 31.93 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 2007029, close 618473, bind 318844, connect 248218, delroute 0 10.01 real 6.81 user 33.38 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 1771484, close 406326, bind 364340, connect 311715, delroute 0 10.51 real 5.83 user 33.74 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 1568634, close 717289, bind 573544, connect 434486, delroute 0 10.01 real 6.26 user 33.79 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 1970427, close 242673, bind 55828, connect 256037, delroute 0 10.01 real 7.64 user 32.17 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 1853334, close 522873, bind 334124, connect 278907, delroute 0 10.01 real 6.18 user 33.91 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 1981704, close 71298, bind 0, connect 69529, delroute 88758 10.01 real 8.25 user 31.65 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1861433, close 128541, bind 502657, connect 0, delroute 0 10.00 real 7.39 user 32.66 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1289583, close 168343, bind 0, connect 556148, delroute 0 10.00 real 6.34 user 31.26 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1814841, close 49030, bind 111332, connect 80812, delroute 0 10.00 real 8.77 user 30.92 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 84331, close 15710, bind 85901, connect 66048, delroute 0 10.34 real 0.71 user 31.32 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1843510, close 34028, bind 74301, connect 53963, delroute 0 10.00 real 8.91 user 31.05 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 1380428, close 180114, bind 86793, connect 486790, delroute 0 0m10.00s real 0m06.46s user 0m31.32s 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 1777470, close 53536, bind 136468, connect 99713, delroute 0 0m10.00s real 0m08.02s user 0m31.50s 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 238232, close 145478, bind 0, connect 19655, delroute 117285 10.00 real 0.85 user 18.80 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1140416, close 155404, bind 311362, connect 0, delroute 0 10.00 real 6.60 user 32.28 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 928003, close 349902, bind 0, connect 291517, delroute 0 10.00 real 1.98 user 24.88 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 978407, close 383459, bind 205063, connect 140946, delroute 0 10.00 real 2.43 user 25.27 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 149749, close 111801, bind 205915, connect 152593, delroute 0 10.52 real 1.08 user 29.88 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 918110, close 281324, bind 356735, connect 293558, delroute 0 10.01 real 7.10 user 29.27 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 883477, close 353467, bind 65639, connect 299008, delroute 0 0m10.00s real 0m02.74s user 0m24.66s 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 1003532, close 368696, bind 188658, connect 131322, delroute 0 0m10.00s real 0m02.27s user 0m23.94s 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 180673, close 115805, bind 0, connect 1710, delroute 119992 10.00 real 0.81 user 17.65 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 1503081, close 464056, bind 697992, connect 0, delroute 0 10.00 real 4.10 user 35.71 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 1612346, close 27758, bind 0, connect 66958, delroute 0 10.01 real 8.74 user 31.15 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 1602178, close 62034, bind 81487, connect 61549, delroute 0 10.01 real 8.11 user 31.86 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 1573744, close 76018, bind 98462, connect 80646, delroute 0 10.42 real 8.79 user 31.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 1587411, close 65185, bind 58815, connect 46572, delroute 0 10.01 real 9.30 user 30.81 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 1554007, close 25293, bind 12587, connect 60296, delroute 0 10.00 real 8.42 user 31.66 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 1574675, close 54759, bind 61405, connect 47226, delroute 0 10.00 real 9.06 user 30.92 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 182635, close 132861, bind 0, connect 2576, delroute 122301 10.00 real 0.92 user 17.84 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 217061 1.01 real 0.16 user 0.86 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 16776 1.00 real 0.02 user 0.99 sys