==== 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 1275225, close 667027, bind 247074, connect 265835, delroute 0 10.01 real 6.33 user 21.97 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1726512, close 502402, bind 868876, connect 0, delroute 0 10.00 real 4.28 user 23.24 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1253110, close 319534, bind 0, connect 640771, delroute 0 10.01 real 3.60 user 19.79 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1381351, close 578642, bind 467695, connect 424842, delroute 0 10.01 real 4.07 user 19.48 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 400796, close 148352, bind 132790, connect 117360, delroute 0 10.49 real 1.15 user 25.27 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1369895, close 437262, bind 211768, connect 224911, delroute 0 10.01 real 3.15 user 16.75 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 1412534, close 298860, bind 34088, connect 338502, delroute 0 10.01 real 3.17 user 18.28 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 1445395, close 498722, bind 284475, connect 236704, delroute 0 10.00 real 3.35 user 17.70 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 1372757, close 155478, bind 0, connect 305840, delroute 151907 10.02 real 4.21 user 17.82 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 981417, close 293144, bind 771595, connect 0, delroute 0 10.00 real 3.76 user 17.13 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 930618, close 311819, bind 0, connect 516297, delroute 0 10.01 real 3.30 user 16.76 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 937453, close 326017, bind 359015, connect 261141, delroute 0 10.01 real 3.16 user 16.51 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 258251, close 86648, bind 136115, connect 64414, delroute 0 10.71 real 0.81 user 22.49 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 710536, close 392013, bind 459287, connect 556624, delroute 0 10.03 real 3.52 user 13.80 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 765295, close 236288, bind 116449, connect 376783, delroute 0 10.02 real 2.84 user 15.23 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 850202, close 357513, bind 371547, connect 177610, delroute 0 10.01 real 2.95 user 14.62 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 818292, close 323428, bind 0, connect 255446, delroute 179110 10.01 real 2.67 user 17.48 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 1681258, close 691768, bind 752721, connect 0, delroute 0 10.06 real 4.04 user 21.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 1613504, close 653616, bind 0, connect 621632, delroute 0 10.01 real 4.25 user 20.31 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 1414322, close 609257, bind 492993, connect 498954, delroute 0 10.05 real 4.80 user 18.08 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 1325724, close 417867, bind 428019, connect 493885, delroute 0 10.49 real 3.52 user 18.42 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 1407022, close 680300, bind 621555, connect 599553, delroute 0 10.07 real 5.24 user 21.16 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 1557904, close 383594, bind 58703, connect 530774, delroute 0 10.01 real 3.69 user 17.81 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 1470529, close 637124, bind 429183, connect 516871, delroute 0 10.07 real 4.43 user 19.42 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 1629130, close 466894, bind 0, connect 420758, delroute 117650 10.01 real 3.89 user 20.46 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1250276, close 581254, bind 1276820, connect 0, delroute 0 10.00 real 4.50 user 16.45 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1225186, close 281845, bind 0, connect 366159, delroute 0 10.01 real 3.39 user 15.47 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1160223, close 504285, bind 595099, connect 387965, delroute 0 10.05 real 3.62 user 14.10 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 509645, close 142859, bind 146836, connect 74422, delroute 0 10.60 real 1.22 user 21.26 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1032164, close 922528, bind 472622, connect 322083, delroute 0 10.02 real 4.01 user 13.75 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 1056176, close 351029, bind 130160, connect 429555, delroute 0 0m10.03s real 0m02.80s user 0m14.72s 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 1388239, close 315134, bind 270580, connect 160693, delroute 0 0m10.01s real 0m03.49s user 0m15.37s 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 327048, close 495583, bind 0, connect 270232, delroute 57468 10.02 real 1.67 user 13.63 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 788839, close 302853, bind 1160007, connect 0, delroute 0 10.04 real 3.15 user 13.93 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 676433, close 457469, bind 0, connect 1058543, delroute 0 10.01 real 3.37 user 11.80 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 766013, close 361381, bind 496899, connect 395987, delroute 0 10.02 real 3.41 user 14.34 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 136576, close 48548, bind 142893, connect 64800, delroute 0 10.44 real 0.80 user 25.61 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 827117, close 270972, bind 358010, connect 183015, delroute 0 10.01 real 3.35 user 17.26 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 815090, close 288523, bind 113853, connect 418935, delroute 0 0m10.01s real 0m03.02s user 0m17.86s 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 892934, close 276768, bind 428509, connect 159204, delroute 0 0m10.01s real 0m03.14s user 0m17.54s 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 110425, close 113181, bind 0, connect 27519, delroute 82331 10.00 real 0.69 user 14.48 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 1470667, close 365931, bind 381200, connect 0, delroute 0 10.00 real 4.00 user 21.41 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 1338799, close 268021, bind 0, connect 403493, delroute 0 10.01 real 3.88 user 20.32 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 1192637, close 310414, bind 348190, connect 471266, delroute 0 10.01 real 3.29 user 16.84 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 955461, close 195267, bind 335646, connect 369094, delroute 0 10.51 real 3.26 user 15.08 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 1083329, close 333741, bind 357811, connect 389252, delroute 0 10.01 real 3.18 user 16.33 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 1139132, close 192315, bind 51551, connect 611360, delroute 0 10.01 real 3.21 user 16.15 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 1089789, close 368199, bind 484360, connect 388834, delroute 0 10.01 real 3.43 user 15.13 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 323203, close 554503, bind 0, connect 581477, delroute 47517 10.01 real 2.08 user 12.58 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 121587 1.01 real 0.17 user 0.76 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 7554 1.00 real 0.01 user 0.86 sys