==== 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 1359986, close 1471818, bind 695784, connect 445840, delroute 0 10.01 real 4.29 user 23.64 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1103964, close 605857, bind 3760820, connect 0, delroute 0 10.00 real 9.09 user 30.91 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1297737, close 142583, bind 0, connect 808555, delroute 0 10.00 real 6.47 user 32.55 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1911842, close 42408, bind 146392, connect 112939, delroute 0 10.00 real 8.80 user 31.14 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 88958, close 19162, bind 74444, connect 68422, delroute 0 10.38 real 0.47 user 30.34 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1960719, close 51233, bind 95915, connect 66436, delroute 0 10.00 real 8.86 user 31.15 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 1744761, close 69886, bind 74878, connect 311334, delroute 0 10.00 real 8.24 user 31.43 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 1957767, close 31525, bind 67699, connect 48022, delroute 0 10.00 real 8.76 user 31.20 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 1939423, close 48204, bind 0, connect 61715, delroute 34839 10.01 real 9.14 user 30.73 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1182444, close 158585, bind 313880, connect 0, delroute 0 10.00 real 6.50 user 32.25 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 945400, close 415418, bind 0, connect 332328, delroute 0 10.00 real 2.76 user 25.74 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1014708, close 371746, bind 194320, connect 147139, delroute 0 10.00 real 3.75 user 26.96 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 116389, close 65395, bind 136297, connect 103432, delroute 0 10.41 real 0.86 user 28.85 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 986561, close 196574, bind 305657, connect 240683, delroute 0 10.00 real 7.36 user 29.72 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 801578, close 340512, bind 110364, connect 429823, delroute 0 10.00 real 3.66 user 30.00 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 981963, close 270427, bind 279176, connect 177786, delroute 0 10.00 real 5.50 user 29.49 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 893550, close 317600, bind 0, connect 208736, delroute 204868 10.01 real 4.78 user 31.56 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 1819221, close 557082, bind 933301, connect 0, delroute 0 10.01 real 5.63 user 34.45 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 1984778, close 266887, bind 0, connect 273560, delroute 0 10.01 real 8.21 user 31.74 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 1871999, close 508674, bind 381896, connect 286487, delroute 0 10.01 real 6.17 user 33.74 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 1724712, close 498851, bind 442169, connect 349746, delroute 0 10.49 real 5.34 user 34.32 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 1577283, close 888402, bind 541887, connect 427342, delroute 0 10.00 real 6.19 user 33.76 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 1900948, close 218686, bind 60365, connect 279431, delroute 0 10.01 real 7.81 user 32.13 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 1871912, close 606920, bind 375680, connect 324795, delroute 0 10.01 real 5.96 user 34.08 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 2000013, close 80238, bind 0, connect 74462, delroute 102763 10.01 real 8.34 user 31.67 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1867898, close 113429, bind 545833, connect 0, delroute 0 10.00 real 7.59 user 32.38 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1269038, close 173302, bind 0, connect 575406, delroute 0 10.00 real 6.26 user 31.17 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1798661, close 45256, bind 92728, connect 66680, delroute 0 10.00 real 8.54 user 31.03 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 82510, close 17409, bind 89142, connect 66551, delroute 0 10.29 real 0.50 user 31.63 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1880191, close 39827, bind 57679, connect 40281, delroute 0 10.00 real 9.17 user 30.64 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 1480299, close 128546, bind 74538, connect 411289, delroute 0 0m10.01s real 0m06.98s user 0m31.79s 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 1842022, close 34081, bind 89542, connect 65746, delroute 0 0m10.01s real 0m08.32s user 0m31.58s 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 255136, close 148750, bind 0, connect 18269, delroute 116756 10.00 real 0.99 user 19.26 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1150202, close 144323, bind 281562, connect 0, delroute 0 10.00 real 6.94 user 31.80 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 936480, close 365712, bind 0, connect 290326, delroute 0 10.00 real 2.08 user 25.02 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1003816, close 374705, bind 191055, connect 133048, delroute 0 10.00 real 2.00 user 24.68 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 113433, close 87270, bind 192555, connect 141710, delroute 0 10.41 real 0.86 user 28.76 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 937925, close 269287, bind 344582, connect 285334, delroute 0 10.01 real 7.30 user 28.85 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 920583, close 363951, bind 62584, connect 283599, delroute 0 0m10.01s real 0m02.16s user 0m25.39s 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 980411, close 376289, bind 211532, connect 141521, delroute 0 0m10.01s real 0m02.57s user 0m25.03s 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 182906, close 113233, bind 0, connect 1904, delroute 119236 10.00 real 0.90 user 17.91 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 1558786, close 434542, bind 716775, connect 0, delroute 0 10.01 real 5.22 user 34.64 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 1608408, close 30966, bind 0, connect 80257, delroute 0 10.01 real 8.79 user 31.30 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 1641921, close 77041, bind 104760, connect 79740, delroute 0 10.01 real 8.41 user 31.63 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 1554333, close 101580, bind 166569, connect 111284, delroute 0 10.36 real 8.23 user 31.44 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 1604573, close 91229, bind 82973, connect 65192, delroute 0 10.01 real 8.48 user 31.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 1581144, close 27322, bind 13677, connect 64176, delroute 0 10.00 real 8.67 user 31.46 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 1596555, close 53625, bind 64132, connect 51922, delroute 0 10.00 real 8.99 user 30.85 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 188530, close 136007, bind 0, connect 4064, delroute 120951 10.00 real 0.84 user 18.52 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 217973 1.01 real 0.19 user 0.82 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 16507 1.00 real 0.03 user 0.97 sys