==== 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 1291371, close 716237, bind 264366, connect 241692, delroute 0 10.00 real 6.30 user 21.49 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1546712, close 354217, bind 1199269, connect 0, delroute 0 10.01 real 4.55 user 21.61 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1254002, close 373175, bind 0, connect 584638, delroute 0 10.00 real 3.69 user 19.12 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1408707, close 531640, bind 357931, connect 308137, delroute 0 10.00 real 3.58 user 19.44 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 475471, close 155095, bind 78066, connect 82507, delroute 0 10.58 real 1.21 user 25.21 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1146497, close 778783, bind 358042, connect 394178, delroute 0 10.02 real 3.71 user 16.98 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 1374496, close 372352, bind 45297, connect 409058, delroute 0 10.06 real 3.40 user 18.81 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 1532789, close 390174, bind 245570, connect 195285, delroute 0 10.01 real 3.61 user 18.30 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 1328678, close 269640, bind 0, connect 406819, delroute 130697 10.01 real 3.53 user 18.21 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 936158, close 335909, bind 974596, connect 0, delroute 0 10.02 real 3.66 user 15.62 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 896666, close 347926, bind 0, connect 641359, delroute 0 10.02 real 3.31 user 16.02 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 986966, close 337309, bind 287783, connect 224466, delroute 0 10.03 real 3.10 user 16.95 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 378344, close 142880, bind 148111, connect 53590, delroute 0 10.61 real 1.19 user 19.58 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 742568, close 413744, bind 528017, connect 316039, delroute 0 10.01 real 3.22 user 14.03 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 759153, close 254290, bind 93317, connect 370784, delroute 0 10.00 real 2.97 user 14.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 815954, close 380075, bind 424369, connect 267648, delroute 0 10.01 real 2.94 user 14.31 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 796778, close 281995, bind 0, connect 254218, delroute 189040 10.01 real 2.69 user 16.78 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 1638654, close 633649, bind 773622, connect 0, delroute 0 10.00 real 3.72 user 21.50 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 1451772, close 610102, bind 0, connect 875426, delroute 0 10.01 real 4.64 user 18.71 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 1849003, close 633293, bind 243897, connect 223189, delroute 0 10.01 real 3.84 user 22.64 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 1195569, close 369225, bind 415302, connect 448346, delroute 0 10.50 real 3.61 user 16.86 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 1202852, close 557174, bind 525711, connect 701216, delroute 0 10.01 real 4.42 user 18.61 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 1446884, close 429885, bind 80346, connect 694922, delroute 0 10.10 real 3.80 user 18.35 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 1388238, close 485512, bind 415987, connect 491223, delroute 0 10.02 real 4.07 user 17.57 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 1498368, close 411593, bind 0, connect 541898, delroute 167878 10.01 real 3.96 user 19.33 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1470467, close 425587, bind 935799, connect 0, delroute 0 10.01 real 3.88 user 18.60 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1042736, close 623097, bind 0, connect 401435, delroute 0 10.02 real 2.70 user 13.56 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1160214, close 451646, bind 586296, connect 234990, delroute 0 10.00 real 2.64 user 14.36 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 471398, close 133086, bind 84251, connect 89280, delroute 0 10.52 real 1.11 user 19.12 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1105169, close 757870, bind 340315, connect 314259, delroute 0 10.01 real 4.03 user 13.55 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 1139217, close 291144, bind 127619, connect 482299, delroute 0 0m10.00s real 0m03.52s user 0m14.90s 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 1423427, close 294121, bind 323661, connect 191244, delroute 0 0m10.01s real 0m03.58s user 0m16.38s 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 429108, close 455537, bind 0, connect 269886, delroute 51558 10.02 real 1.73 user 14.24 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 798377, close 263256, bind 1001901, connect 0, delroute 0 10.03 real 3.28 user 13.75 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 598746, close 572033, bind 0, connect 1172420, delroute 0 10.01 real 3.53 user 11.07 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 829288, close 339250, bind 351763, connect 273803, delroute 0 10.01 real 2.87 user 16.07 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 124943, close 44662, bind 139068, connect 56910, delroute 0 10.58 real 0.82 user 25.38 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 833758, close 303738, bind 371636, connect 243737, delroute 0 10.01 real 3.55 user 17.21 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 829747, close 317432, bind 84480, connect 383821, delroute 0 0m10.01s real 0m02.97s user 0m17.71s 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 877829, close 229655, bind 328620, connect 139632, delroute 0 0m10.01s real 0m02.75s user 0m18.41s 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 121473, close 102982, bind 0, connect 20210, delroute 81659 10.00 real 0.83 user 14.08 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 1338723, close 202613, bind 586652, connect 0, delroute 0 10.01 real 3.79 user 20.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 1299398, close 278014, bind 0, connect 442817, delroute 0 10.01 real 3.88 user 19.64 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 1077422, close 282589, bind 450252, connect 398151, delroute 0 10.01 real 3.51 user 16.40 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 1009434, close 208999, bind 318776, connect 402283, delroute 0 10.43 real 3.11 user 15.92 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 957787, close 613713, bind 555644, connect 444225, delroute 0 10.08 real 4.25 user 15.56 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 1092927, close 259709, bind 72763, connect 461236, delroute 0 10.01 real 3.36 user 16.79 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 1114818, close 347832, bind 364848, connect 307469, delroute 0 10.01 real 3.19 user 16.60 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 381844, close 528264, bind 0, connect 616167, delroute 43930 10.01 real 2.36 user 12.42 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 116473 1.01 real 0.19 user 0.77 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 7468 1.00 real 0.03 user 0.94 sys