==== 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 1195605, close 642454, bind 240304, connect 297526, delroute 0 10.01 real 5.36 user 21.27 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1550888, close 426234, bind 1014172, connect 0, delroute 0 10.01 real 3.76 user 24.77 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1461592, close 326101, bind 0, connect 424197, delroute 0 10.01 real 4.40 user 22.40 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1206791, close 506174, bind 426274, connect 333530, delroute 0 10.00 real 3.23 user 17.67 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 235112, close 70801, bind 60335, connect 68190, delroute 0 10.52 real 0.88 user 24.79 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1153602, close 625102, bind 531232, connect 309765, delroute 0 10.01 real 3.73 user 16.58 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 1116685, close 313756, bind 94720, connect 567202, delroute 0 10.00 real 3.22 user 15.83 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 1330241, close 229518, bind 362091, connect 197834, delroute 0 10.01 real 2.74 user 17.05 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 1256901, close 175341, bind 0, connect 334486, delroute 138666 10.01 real 3.73 user 18.27 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 930490, close 276206, bind 1345594, connect 0, delroute 0 10.03 real 3.22 user 15.47 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 747673, close 242458, bind 0, connect 1446281, delroute 0 10.01 real 3.87 user 13.92 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 809557, close 254562, bind 826125, connect 745749, delroute 0 10.10 real 3.29 user 14.84 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 112001, close 34385, bind 113465, connect 67594, delroute 0 10.72 real 0.60 user 10.88 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 639588, close 189255, bind 657863, connect 317369, delroute 0 10.02 real 3.40 user 13.16 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 666806, close 203774, bind 119333, connect 494391, delroute 0 10.01 real 3.26 user 13.99 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 743332, close 266118, bind 557732, connect 323344, delroute 0 10.01 real 3.45 user 14.11 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 581419, close 95574, bind 0, connect 383901, delroute 102427 10.01 real 2.91 user 13.85 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 1442507, close 534283, bind 704947, connect 0, delroute 0 10.01 real 2.99 user 18.88 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 1419706, close 478585, bind 0, connect 617989, delroute 0 10.01 real 3.01 user 17.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 1400779, close 664422, bind 294299, connect 456673, delroute 0 10.00 real 3.72 user 18.43 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 1245270, close 223909, bind 279012, connect 305756, delroute 0 10.57 real 3.30 user 18.67 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 1055738, close 761436, bind 677409, connect 595411, delroute 0 10.07 real 4.43 user 16.79 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 985170, close 330475, bind 233004, connect 1293753, delroute 0 10.02 real 4.36 user 15.03 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 1215661, close 527828, bind 662642, connect 532740, delroute 0 10.02 real 4.83 user 17.70 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 1178234, close 177238, bind 0, connect 657508, delroute 199507 10.01 real 3.35 user 16.09 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1243526, close 401991, bind 1136840, connect 0, delroute 0 10.00 real 4.07 user 16.78 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1089401, close 322581, bind 0, connect 442059, delroute 0 10.01 real 3.05 user 14.91 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1149724, close 267376, bind 409989, connect 209225, delroute 0 10.01 real 3.40 user 14.76 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 420449, close 91291, bind 101849, connect 59068, delroute 0 10.51 real 1.12 user 19.58 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1044635, close 578263, bind 481905, connect 276317, delroute 0 10.06 real 3.76 user 14.30 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 1069552, close 297223, bind 75243, connect 399208, delroute 0 0m10.01s real 0m03.19s user 0m14.55s 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 1278364, close 288960, bind 385932, connect 182990, delroute 0 0m10.00s real 0m03.11s user 0m15.51s 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 526250, close 478513, bind 0, connect 427420, delroute 41111 10.01 real 2.17 user 14.16 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 835604, close 333156, bind 1727601, connect 0, delroute 0 10.01 real 3.62 user 15.41 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 698484, close 297326, bind 0, connect 1407701, delroute 0 10.02 real 3.49 user 13.24 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 666120, close 305386, bind 918087, connect 729137, delroute 0 10.01 real 3.44 user 13.22 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 143473, close 39759, bind 109387, connect 72796, delroute 0 11.04 real 0.74 user 10.80 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 577122, close 256485, bind 649573, connect 351086, delroute 0 10.11 real 3.09 user 14.18 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 569504, close 212855, bind 245506, connect 1105521, delroute 0 0m10.01s real 0m03.58s user 0m13.22s 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 659019, close 210686, bind 834460, connect 468099, delroute 0 0m10.01s real 0m03.45s user 0m13.50s 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 239252, close 153518, bind 0, connect 691678, delroute 25088 10.02 real 2.06 user 14.04 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 1214251, close 226828, bind 679424, connect 0, delroute 0 10.01 real 3.21 user 16.69 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 1089147, close 213415, bind 0, connect 618443, delroute 0 10.02 real 2.91 user 16.93 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 1193626, close 215843, bind 282367, connect 273720, delroute 0 10.07 real 3.05 user 16.92 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 968441, close 132823, bind 338110, connect 259779, delroute 0 10.60 real 2.68 user 15.39 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 925570, close 354220, bind 481852, connect 435023, delroute 0 10.00 real 3.42 user 16.03 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 998693, close 148872, bind 93997, connect 588805, delroute 0 10.02 real 3.12 user 16.39 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 1051658, close 199978, bind 327339, connect 367134, delroute 0 10.01 real 3.53 user 17.06 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 297531, close 405803, bind 0, connect 668687, delroute 48610 10.02 real 1.92 user 12.41 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 119385 1.00 real 0.14 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 7935 1.00 real 0.02 user 0.91 sys