==== 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 1267816, close 130976, bind 91060, connect 146042, delroute 0 10.00 real 6.84 user 19.71 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1488608, close 73045, bind 420491, connect 0, delroute 0 10.00 real 6.93 user 21.11 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1494900, close 106599, bind 0, connect 150059, delroute 0 10.01 real 6.23 user 20.44 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1351838, close 151112, bind 327899, connect 124165, delroute 0 10.01 real 5.12 user 19.26 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 1047990, close 109705, bind 72782, connect 72241, delroute 0 10.62 real 4.18 user 18.72 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1219881, close 109547, bind 420710, connect 152124, delroute 0 10.03 real 5.61 user 16.04 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 1459000, close 55833, bind 41498, connect 154275, delroute 0 10.02 real 4.58 user 17.59 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 1403949, close 124756, bind 273029, connect 120561, delroute 0 10.02 real 4.73 user 17.04 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 1393770, close 54722, bind 0, connect 103667, delroute 54130 10.01 real 4.73 user 16.57 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 894997, close 255036, bind 1684581, connect 0, delroute 0 10.01 real 3.66 user 16.64 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 886898, close 103107, bind 0, connect 1484410, delroute 0 10.01 real 4.35 user 16.55 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 878042, close 111780, bind 630650, connect 801050, delroute 0 10.01 real 3.74 user 16.31 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 182594, close 52431, bind 92088, connect 57340, delroute 0 10.76 real 1.10 user 12.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 772340, close 228582, bind 741797, connect 502817, delroute 0 10.08 real 3.53 user 15.87 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 730100, close 117224, bind 130785, connect 215187, delroute 0 10.01 real 3.45 user 15.12 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 784241, close 177804, bind 530944, connect 259801, delroute 0 10.00 real 3.46 user 16.92 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 765545, close 114954, bind 0, connect 223076, delroute 89798 10.01 real 3.07 user 15.95 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 1527510, close 134288, bind 157274, connect 0, delroute 0 10.01 real 4.18 user 16.40 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 1487212, close 97932, bind 0, connect 169154, delroute 0 10.01 real 4.27 user 16.59 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 1443337, close 162102, bind 271672, connect 105231, delroute 0 10.01 real 4.31 user 17.12 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 1245335, close 47483, bind 163215, connect 127759, delroute 0 10.51 real 4.20 user 17.10 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 1314917, close 115115, bind 204628, connect 153640, delroute 0 10.02 real 5.01 user 16.23 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 1390938, close 53399, bind 20637, connect 178876, delroute 0 10.02 real 4.89 user 15.58 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 1364440, close 122522, bind 288402, connect 125116, delroute 0 10.01 real 5.64 user 16.93 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 1349927, close 59924, bind 0, connect 201032, delroute 85279 10.03 real 5.06 user 17.13 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1091093, close 119157, bind 1133193, connect 0, delroute 0 10.01 real 4.66 user 15.92 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1214132, close 185139, bind 0, connect 149711, delroute 0 10.05 real 4.34 user 16.03 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1332679, close 117243, bind 336615, connect 62995, delroute 0 10.04 real 4.34 user 16.52 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 1056336, close 205721, bind 78684, connect 53961, delroute 0 10.71 real 3.06 user 17.65 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1019519, close 154145, bind 556735, connect 149717, delroute 0 10.05 real 3.92 user 14.88 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 1250080, close 136934, bind 65423, connect 160396, delroute 0 0m10.01s real 0m04.66s user 0m17.25s 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 1200558, close 188892, bind 247762, connect 96998, delroute 0 0m10.03s real 0m04.00s user 0m15.30s 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 590892, close 342313, bind 0, connect 260753, delroute 36006 10.02 real 2.11 user 17.07 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 881399, close 257231, bind 1559020, connect 0, delroute 0 10.03 real 3.43 user 17.85 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 826725, close 129646, bind 0, connect 1341974, delroute 0 10.02 real 4.01 user 15.03 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 837308, close 173359, bind 842867, connect 464902, delroute 0 10.00 real 3.44 user 16.01 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 162927, close 59424, bind 125641, connect 50774, delroute 0 10.80 real 0.81 user 11.90 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 725676, close 298082, bind 694777, connect 377259, delroute 0 10.03 real 3.52 user 15.88 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 817353, close 110498, bind 179321, connect 950038, delroute 0 0m10.01s real 0m03.43s user 0m16.05s 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 796310, close 199846, bind 906545, connect 618200, delroute 0 0m10.01s real 0m03.60s user 0m15.42s 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 333985, close 149329, bind 0, connect 593481, delroute 31149 10.02 real 2.39 user 17.28 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 1025134, close 153918, bind 631429, connect 0, delroute 0 10.02 real 4.14 user 15.52 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 1201792, close 54500, bind 0, connect 181765, delroute 0 10.02 real 5.19 user 17.06 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 1168433, close 91315, bind 200942, connect 134868, delroute 0 10.02 real 4.48 user 16.90 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 970087, close 47443, bind 233698, connect 110092, delroute 0 10.52 real 4.87 user 17.04 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 1157121, close 92691, bind 169789, connect 120332, delroute 0 10.01 real 4.64 user 16.58 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 1163063, close 68896, bind 40049, connect 347873, delroute 0 10.06 real 4.26 user 16.72 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 1102870, close 74789, bind 282319, connect 172288, delroute 0 10.03 real 3.69 user 16.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 451829, close 255698, bind 0, connect 393608, delroute 46233 10.03 real 2.61 user 15.78 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 116428 1.00 real 0.15 user 0.79 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 7143 1.01 real 0.01 user 0.79 sys