==== 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 1171019, close 538462, bind 233960, connect 249488, delroute 0 10.01 real 5.28 user 21.62 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1481973, close 413406, bind 1149707, connect 0, delroute 0 10.02 real 4.58 user 24.13 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1359313, close 370491, bind 0, connect 520385, delroute 0 10.01 real 3.91 user 23.52 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1242384, close 405201, bind 529947, connect 319695, delroute 0 10.01 real 3.71 user 18.56 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 195971, close 17187, bind 59095, connect 55083, delroute 0 10.33 real 0.57 user 20.57 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1113350, close 565459, bind 489353, connect 325925, delroute 0 10.01 real 3.99 user 17.62 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 1071295, close 292222, bind 101560, connect 596189, delroute 0 10.05 real 2.86 user 16.71 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 1273654, close 399026, bind 380519, connect 245658, delroute 0 10.01 real 2.87 user 16.97 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 1162883, close 185626, bind 0, connect 336312, delroute 135044 10.01 real 4.64 user 16.34 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 850744, close 173107, bind 1841260, connect 0, delroute 0 10.03 real 3.33 user 15.78 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 750473, close 229596, bind 0, connect 1431550, delroute 0 10.02 real 3.88 user 13.60 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 785234, close 216876, bind 720747, connect 714876, delroute 0 10.01 real 3.63 user 14.82 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 129946, close 34930, bind 93996, connect 65504, delroute 0 10.87 real 0.95 user 11.09 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 665873, close 232717, bind 542162, connect 307174, delroute 0 10.01 real 3.05 user 13.32 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 633458, close 105187, bind 82414, connect 446145, delroute 0 10.02 real 3.21 user 14.06 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 712704, close 166830, bind 532583, connect 300630, delroute 0 10.01 real 3.50 user 13.95 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 609920, close 158613, bind 0, connect 361138, delroute 98462 10.01 real 3.15 user 14.32 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 1199291, close 528556, bind 1942394, connect 0, delroute 0 10.01 real 5.71 user 17.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 1268462, close 1029285, bind 0, connect 710747, delroute 0 10.08 real 3.99 user 18.09 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 1299659, close 267767, bind 384438, connect 524598, delroute 0 10.01 real 3.44 user 17.03 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 1350622, close 339646, bind 345115, connect 292061, delroute 0 10.62 real 3.07 user 20.20 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 1294112, close 989468, bind 511467, connect 388985, delroute 0 10.01 real 4.38 user 20.02 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 1385334, close 342170, bind 111527, connect 633767, delroute 0 10.01 real 3.73 user 18.46 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 1164396, close 330900, bind 494524, connect 541490, delroute 0 10.02 real 3.91 user 16.02 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 1165695, close 218553, bind 0, connect 667980, delroute 185481 10.01 real 3.68 user 16.67 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1170334, close 535328, bind 1370785, connect 0, delroute 0 10.01 real 4.18 user 15.71 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 833867, close 379024, bind 0, connect 667740, delroute 0 10.01 real 3.17 user 13.60 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1059281, close 252460, bind 534989, connect 293804, delroute 0 10.01 real 3.30 user 13.77 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 468184, close 168231, bind 111608, connect 81164, delroute 0 10.57 real 1.33 user 18.70 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1226349, close 634677, bind 272370, connect 185514, delroute 0 10.00 real 3.75 user 15.40 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 1069890, close 398631, bind 118525, connect 473440, delroute 0 0m10.10s real 0m03.04s user 0m15.35s 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 1206332, close 316694, bind 374655, connect 277677, delroute 0 0m10.01s real 0m03.30s 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 648407, close 708227, bind 0, connect 239857, delroute 32128 10.01 real 2.18 user 14.51 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 843651, close 187878, bind 1812903, connect 0, delroute 0 10.01 real 3.45 user 15.35 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 656639, close 276841, bind 0, connect 1563556, delroute 0 10.00 real 3.43 user 13.36 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 710764, close 241556, bind 840832, connect 633535, delroute 0 10.01 real 3.27 user 14.33 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 136607, close 41979, bind 104720, connect 68582, delroute 0 10.74 real 0.73 user 10.95 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 617145, close 265255, bind 593501, connect 370043, delroute 0 10.02 real 3.03 user 14.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 541791, close 176775, bind 176402, connect 1041187, delroute 0 0m10.01s real 0m03.51s user 0m12.90s 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 654416, close 244573, bind 745887, connect 501295, delroute 0 0m10.01s real 0m02.93s user 0m13.74s 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 222297, close 150532, bind 0, connect 656512, delroute 30947 10.01 real 2.13 user 14.15 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 1158246, close 315367, bind 746970, connect 0, delroute 0 10.01 real 3.39 user 16.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 1066809, close 159599, bind 0, connect 649785, delroute 0 10.02 real 2.99 user 16.25 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 1139711, close 192842, bind 360960, connect 322671, delroute 0 10.01 real 2.74 user 17.71 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 979272, close 108422, bind 340558, connect 285287, delroute 0 10.58 real 3.16 user 16.30 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 939010, close 292930, bind 393508, connect 440645, delroute 0 10.01 real 3.48 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 942709, close 216971, bind 118967, connect 758916, delroute 0 10.01 real 3.19 user 15.65 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 915803, close 260187, bind 430841, connect 454745, delroute 0 10.01 real 3.09 user 15.27 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 258425, close 361871, bind 0, connect 588044, delroute 53460 10.02 real 1.77 user 13.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 116242 1.00 real 0.15 user 0.72 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 8219 1.01 real 0.02 user 0.95 sys