==== 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 1151105, close 1016889, bind 371949, connect 360528, delroute 0 10.01 real 5.55 user 20.89 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1854224, close 680816, bind 774715, connect 0, delroute 0 10.01 real 4.40 user 24.33 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1591113, close 435307, bind 0, connect 409629, delroute 0 10.01 real 4.37 user 22.17 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1499683, close 458523, bind 392381, connect 236230, delroute 0 10.00 real 3.89 user 18.89 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 547854, close 267051, bind 144632, connect 159033, delroute 0 10.49 real 1.28 user 15.74 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 758113, close 818973, bind 648781, connect 438617, delroute 0 10.01 real 3.31 user 10.59 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 784378, close 544564, bind 162159, connect 468237, delroute 0 10.01 real 2.48 user 10.99 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 753572, close 636296, bind 530322, connect 368277, delroute 0 10.03 real 2.58 user 9.89 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 579588, close 199699, bind 0, connect 631107, delroute 188513 10.04 real 2.01 user 10.42 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 612183, close 562844, bind 742889, connect 0, delroute 0 10.00 real 2.28 user 13.22 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 643433, close 550361, bind 0, connect 690851, delroute 0 10.01 real 2.66 user 14.31 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 843493, close 386172, bind 509093, connect 408288, delroute 0 10.01 real 3.52 user 14.44 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 115260, close 38185, bind 102956, connect 35709, delroute 0 10.61 real 0.47 user 25.41 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 689822, close 256254, bind 573187, connect 243332, delroute 0 10.01 real 3.22 user 14.52 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 707768, close 215368, bind 130041, connect 340290, delroute 0 10.01 real 2.55 user 15.89 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 878554, close 289061, bind 368884, connect 125201, delroute 0 10.06 real 3.47 user 15.66 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 799499, close 321712, bind 0, connect 229131, delroute 165120 10.01 real 2.83 user 16.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 1576949, close 683766, bind 1101571, connect 0, delroute 0 10.01 real 4.54 user 20.38 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 1616980, close 525518, bind 0, connect 499748, delroute 0 10.02 real 3.60 user 20.10 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 1601672, close 610710, bind 324799, connect 267016, delroute 0 10.02 real 3.89 user 19.91 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 1351399, close 411010, bind 485898, connect 410916, delroute 0 10.54 real 3.87 user 17.84 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 1204932, close 899959, bind 507464, connect 499957, delroute 0 10.01 real 4.44 user 17.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 1622430, close 469213, bind 55684, connect 425039, delroute 0 10.01 real 3.57 user 20.32 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 1478337, close 482586, bind 495588, connect 401315, delroute 0 10.01 real 4.24 user 18.39 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 1607825, close 407621, bind 0, connect 461133, delroute 133752 10.01 real 3.97 user 20.37 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1417584, close 555152, bind 1225700, connect 0, delroute 0 10.01 real 4.42 user 18.57 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1305300, close 345226, bind 0, connect 311646, delroute 0 10.01 real 2.95 user 16.45 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1584495, close 467282, bind 218840, connect 113067, delroute 0 10.01 real 3.53 user 18.47 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 280031, close 100803, bind 85319, connect 69115, delroute 0 10.44 real 0.58 user 21.73 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1210834, close 622480, bind 456441, connect 259857, delroute 0 10.01 real 3.89 user 15.27 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 1063610, close 508978, bind 98821, connect 400355, delroute 0 0m10.01s real 0m03.22s user 0m13.56s 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 1406262, close 387253, bind 320619, connect 170433, delroute 0 0m10.00s real 0m03.29s 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 709730, close 806724, bind 0, connect 203216, delroute 33505 10.01 real 1.95 user 14.53 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 813655, close 350077, bind 990543, connect 0, delroute 0 10.01 real 2.74 user 13.82 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 715367, close 435955, bind 0, connect 1062812, delroute 0 10.00 real 3.19 user 11.92 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 771855, close 478379, bind 480502, connect 272922, delroute 0 10.01 real 3.24 user 13.25 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 254637, close 119483, bind 242885, connect 47346, delroute 0 10.69 real 1.20 user 17.92 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 534214, close 403444, bind 731722, connect 292125, delroute 0 10.01 real 2.87 user 12.01 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 758003, close 233686, bind 139000, connect 432123, delroute 0 0m10.02s real 0m03.05s user 0m17.08s 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 900711, close 261824, bind 372742, connect 174701, delroute 0 0m10.01s real 0m03.05s user 0m17.43s 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 113396, close 82317, bind 0, connect 19227, delroute 80903 10.01 real 0.54 user 14.62 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 1411472, close 257551, bind 641863, connect 0, delroute 0 10.04 real 4.01 user 20.66 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 1251228, close 245446, bind 0, connect 557440, delroute 0 10.02 real 3.57 user 18.58 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 1185544, close 338675, bind 366344, connect 372715, delroute 0 10.02 real 3.64 user 16.64 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 1041361, close 224248, bind 366689, connect 357255, delroute 0 10.56 real 2.97 user 16.37 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 1076756, close 659342, bind 275584, connect 333217, delroute 0 10.01 real 3.42 user 17.60 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 1097835, close 246690, bind 49153, connect 572673, delroute 0 10.00 real 3.02 user 16.58 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 1181398, close 491663, bind 346318, connect 311435, delroute 0 10.01 real 3.23 user 16.81 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 305930, close 402843, bind 0, connect 917120, delroute 51984 10.01 real 2.56 user 13.05 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 112284 1.01 real 0.17 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 7904 1.01 real 0.01 user 0.88 sys