==== 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 1256591, close 705673, bind 256327, connect 264649, delroute 0 10.00 real 6.43 user 21.86 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1581558, close 577561, bind 1381460, connect 0, delroute 0 10.00 real 5.12 user 22.72 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1652154, close 631682, bind 0, connect 478445, delroute 0 10.00 real 4.28 user 24.74 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1362509, close 422204, bind 456753, connect 337586, delroute 0 10.01 real 3.30 user 19.15 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 364382, close 136620, bind 193559, connect 154469, delroute 0 10.48 real 1.23 user 25.40 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1252348, close 560808, bind 444245, connect 322859, delroute 0 10.01 real 3.98 user 17.97 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 1152441, close 397960, bind 84098, connect 562193, delroute 0 10.01 real 3.17 user 16.95 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 1653726, close 460657, bind 205823, connect 191646, delroute 0 10.01 real 3.91 user 19.13 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 1261937, close 232161, bind 0, connect 327720, delroute 184426 10.01 real 3.91 user 17.65 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 899722, close 268487, bind 978628, connect 0, delroute 0 10.01 real 3.47 user 15.79 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 819175, close 348474, bind 0, connect 863001, delroute 0 10.01 real 3.13 user 15.05 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 845074, close 443184, bind 423691, connect 379665, delroute 0 10.01 real 3.33 user 15.45 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 183897, close 60631, bind 106988, connect 43552, delroute 0 10.43 real 0.94 user 25.37 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 790129, close 412344, bind 487937, connect 271137, delroute 0 10.01 real 3.11 user 13.95 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 786529, close 318156, bind 105651, connect 405903, delroute 0 10.01 real 2.71 user 15.20 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 850876, close 332206, bind 409681, connect 183215, delroute 0 10.01 real 2.97 user 15.13 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 773797, close 337198, bind 0, connect 280359, delroute 183390 10.01 real 2.55 user 15.99 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 1518274, close 822035, bind 1045562, connect 0, delroute 0 10.02 real 4.60 user 19.32 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 1640153, close 549273, bind 0, connect 701206, delroute 0 10.01 real 3.96 user 20.23 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 1470763, close 543598, bind 397208, connect 410464, delroute 0 10.01 real 3.83 user 19.17 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 1765237, close 716735, bind 264194, connect 238593, delroute 0 10.52 real 4.21 user 23.31 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 1383495, close 890030, bind 313053, connect 414296, delroute 0 10.01 real 4.33 user 19.40 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 1642525, close 674865, bind 85812, connect 544837, delroute 0 10.01 real 3.91 user 21.60 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 1433736, close 647133, bind 341194, connect 536604, delroute 0 10.11 real 3.78 user 18.10 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 1377981, close 349011, bind 0, connect 571172, delroute 188592 10.08 real 3.34 user 18.47 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1589866, close 604768, bind 653144, connect 0, delroute 0 10.01 real 4.23 user 19.94 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1087608, close 275173, bind 0, connect 565031, delroute 0 10.02 real 3.43 user 15.27 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1286349, close 419655, bind 480824, connect 186554, delroute 0 10.00 real 2.89 user 14.40 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 481666, close 134149, bind 93826, connect 60437, delroute 0 10.45 real 0.88 user 17.76 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1015295, close 843523, bind 406673, connect 296464, delroute 0 10.00 real 3.80 user 13.31 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 1150821, close 289487, bind 82639, connect 405093, delroute 0 0m10.06s real 0m02.75s user 0m15.08s 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 1301002, close 449340, bind 425488, connect 213958, delroute 0 0m10.00s real 0m03.53s user 0m14.64s 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 589463, close 561880, bind 0, connect 374821, delroute 39074 10.01 real 2.01 user 14.22 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 928478, close 176166, bind 572526, connect 0, delroute 0 10.10 real 3.33 user 15.83 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 687059, close 312176, bind 0, connect 892558, delroute 0 10.01 real 3.28 user 11.83 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 691848, close 359425, bind 621772, connect 404002, delroute 0 10.01 real 3.06 user 11.81 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 414726, close 154215, bind 194982, connect 47908, delroute 0 10.57 real 1.20 user 17.26 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 847904, close 249603, bind 393885, connect 214501, delroute 0 10.01 real 3.64 user 17.71 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 786715, close 230076, bind 85776, connect 317222, delroute 0 0m10.01s real 0m02.84s user 0m18.38s 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 906950, close 242234, bind 244978, connect 127500, delroute 0 0m10.01s real 0m03.40s user 0m17.53s 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 116789, close 91349, bind 0, connect 16530, delroute 81797 10.01 real 0.69 user 14.25 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 1438957, close 280762, bind 580220, connect 0, delroute 0 10.00 real 3.65 user 21.06 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 1380117, close 231757, bind 0, connect 428856, delroute 0 10.01 real 3.30 user 19.49 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 1378432, close 178085, bind 168708, connect 194104, delroute 0 10.01 real 3.55 user 20.27 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 1228695, close 205530, bind 183085, connect 192843, delroute 0 10.59 real 3.49 user 20.86 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 1041306, close 431971, bind 286457, connect 312054, delroute 0 10.01 real 3.91 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 1047236, close 197847, bind 84768, connect 579662, delroute 0 10.01 real 3.32 user 15.37 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 1083513, close 269274, bind 313060, connect 354727, delroute 0 10.01 real 3.17 user 16.02 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 306175, close 447685, bind 0, connect 594029, delroute 50597 10.01 real 1.90 user 13.07 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 118614 1.01 real 0.20 user 0.71 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 7412 1.01 real 0.01 user 0.87 sys