==== 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 1233542, close 461169, bind 209000, connect 213980, delroute 0 10.01 real 6.09 user 22.15 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1524950, close 349787, bind 990504, connect 0, delroute 0 10.01 real 3.89 user 24.02 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1308680, close 319445, bind 0, connect 474946, delroute 0 10.00 real 3.85 user 21.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 1233917, close 348429, bind 429675, connect 286638, delroute 0 10.04 real 3.82 user 17.27 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 327055, close 68765, bind 77631, connect 70518, delroute 0 10.45 real 1.02 user 23.26 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1210425, close 404943, bind 310271, connect 311798, delroute 0 10.03 real 3.08 user 17.46 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 1205258, close 203356, bind 94420, connect 462485, delroute 0 10.00 real 3.48 user 15.78 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 1283139, close 339019, bind 429862, connect 256184, delroute 0 10.04 real 3.52 user 16.75 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 1199139, close 182675, bind 0, connect 351321, delroute 152821 10.06 real 4.74 user 17.40 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 966578, close 129589, bind 1681893, connect 0, delroute 0 10.00 real 3.38 user 17.33 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 780071, close 226581, bind 0, connect 1541464, delroute 0 10.00 real 4.04 user 14.21 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 701214, close 225259, bind 870028, connect 764451, delroute 0 10.01 real 3.35 user 13.16 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 121092, close 20700, bind 92486, connect 61773, delroute 0 10.73 real 0.77 user 11.02 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 698684, close 194650, bind 583249, connect 247787, delroute 0 10.01 real 3.34 user 13.14 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 717252, close 118721, bind 151687, connect 388442, delroute 0 10.01 real 3.88 user 13.87 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 764951, close 109706, bind 543906, connect 286772, delroute 0 10.01 real 3.59 user 13.46 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 629410, close 116339, bind 0, connect 363640, delroute 99405 10.01 real 3.66 user 13.83 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 1389901, close 764778, bind 992395, connect 0, delroute 0 10.00 real 4.20 user 18.34 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 1336645, close 494676, bind 0, connect 845824, delroute 0 10.02 real 3.86 user 19.39 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 1227778, close 495731, bind 518011, connect 581611, delroute 0 10.01 real 4.08 user 16.32 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 1101998, close 275605, bind 410812, connect 396683, delroute 0 10.56 real 3.54 user 18.11 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 1096088, close 764461, bind 580511, connect 626810, delroute 0 10.03 real 4.17 user 17.42 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 1284231, close 244530, bind 86655, connect 773413, delroute 0 10.01 real 3.83 user 17.58 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 1088471, close 385114, bind 567981, connect 568376, delroute 0 10.01 real 3.91 user 15.28 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 1065436, close 233708, bind 0, connect 613330, delroute 239779 10.04 real 3.47 user 15.36 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1168862, close 474547, bind 1086908, connect 0, delroute 0 10.01 real 3.95 user 16.66 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1045703, close 309602, bind 0, connect 414508, delroute 0 10.06 real 3.05 user 13.69 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1240149, close 309949, bind 300754, connect 212495, delroute 0 10.03 real 3.32 user 15.09 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 381822, close 147519, bind 154072, connect 55638, delroute 0 10.58 real 1.06 user 20.01 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1196872, close 343380, bind 264775, connect 145418, delroute 0 10.03 real 3.50 user 14.98 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 1015368, close 227579, bind 198713, connect 447926, delroute 0 0m10.01s real 0m03.01s user 0m14.05s 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 1215651, close 347589, bind 346924, connect 296592, delroute 0 0m10.00s real 0m03.65s user 0m15.24s 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 506764, close 556523, bind 0, connect 342792, delroute 37122 10.01 real 2.10 user 14.26 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 824340, close 303570, bind 1980073, connect 0, delroute 0 10.07 real 3.74 user 14.63 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 655690, close 269801, bind 0, connect 1563455, delroute 0 10.06 real 3.77 user 12.85 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 662381, close 295622, bind 980647, connect 660230, delroute 0 10.01 real 3.48 user 13.17 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 150870, close 25782, bind 91257, connect 52927, delroute 0 10.65 real 0.92 user 11.18 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 605397, close 331692, bind 758878, connect 475334, delroute 0 10.01 real 3.16 user 13.19 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 544161, close 280398, bind 209849, connect 1121102, delroute 0 0m10.02s real 0m03.56s user 0m12.43s 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 657103, close 254812, bind 816700, connect 514737, delroute 0 0m10.01s real 0m03.48s user 0m13.88s 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 234665, close 139644, bind 0, connect 691943, delroute 22722 10.01 real 1.93 user 13.54 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 1132789, close 294568, bind 805061, connect 0, delroute 0 10.03 real 3.67 user 17.95 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 1029074, close 236711, bind 0, connect 659022, delroute 0 10.01 real 3.40 user 16.29 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 1134494, close 198126, bind 308393, connect 314777, delroute 0 10.01 real 2.81 user 16.49 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 922595, close 105264, bind 347108, connect 273566, delroute 0 10.44 real 2.63 user 15.85 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 939315, close 498113, bind 501127, connect 456699, delroute 0 10.01 real 4.09 user 16.19 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 1033549, close 231030, bind 99043, connect 624579, delroute 0 10.01 real 3.60 user 15.96 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 1128951, close 279814, bind 304625, connect 348594, delroute 0 10.09 real 3.09 user 17.61 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 387718, close 671573, bind 0, connect 490875, delroute 43276 10.01 real 2.01 user 13.01 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 125939 1.00 real 0.14 user 0.84 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 7543 1.01 real 0.01 user 0.90 sys