==== 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 1213816, close 508289, bind 227111, connect 232318, delroute 0 10.00 real 5.75 user 22.63 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1434896, close 372923, bind 1315894, connect 0, delroute 0 10.00 real 4.36 user 23.57 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1446134, close 309433, bind 0, connect 422201, delroute 0 10.01 real 4.29 user 24.72 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1276949, close 309878, bind 397378, connect 380303, delroute 0 10.02 real 4.04 user 18.68 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 249495, close 87421, bind 153196, connect 118600, delroute 0 10.52 real 0.74 user 24.24 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1193157, close 515461, bind 461767, connect 317638, delroute 0 10.02 real 4.09 user 18.20 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 1226144, close 319910, bind 55553, connect 493036, delroute 0 10.02 real 2.96 user 16.17 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 1347050, close 356394, bind 232581, connect 246412, delroute 0 10.00 real 3.36 user 16.80 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 1091977, close 317574, bind 0, connect 441874, delroute 202130 10.01 real 3.21 user 16.47 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 847372, close 254429, bind 1685476, connect 0, delroute 0 10.01 real 3.48 user 15.32 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 702590, close 161831, bind 0, connect 1551726, delroute 0 10.01 real 4.02 user 13.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 812673, close 231603, bind 843428, connect 519334, delroute 0 10.01 real 3.70 user 14.89 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 122562, close 26322, bind 70981, connect 68957, delroute 0 10.72 real 0.98 user 10.67 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 678898, close 215960, bind 819566, connect 446005, delroute 0 10.09 real 3.86 user 13.22 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 683016, close 90041, bind 151697, connect 322888, delroute 0 10.01 real 3.99 user 14.02 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 701954, close 196334, bind 482734, connect 280056, delroute 0 10.01 real 3.03 user 13.23 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 646375, close 109635, bind 0, connect 360192, delroute 69270 10.08 real 3.70 user 13.71 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 1315084, close 423236, bind 1806859, connect 0, delroute 0 10.01 real 5.15 user 19.11 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 1358552, close 679772, bind 0, connect 915360, delroute 0 10.01 real 4.26 user 17.49 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 1378580, close 577369, bind 298254, connect 431912, delroute 0 10.01 real 3.84 user 18.54 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 1302206, close 315968, bind 245573, connect 254962, delroute 0 10.60 real 3.63 user 19.69 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 1228007, close 749574, bind 452413, connect 362180, delroute 0 10.01 real 3.85 user 18.56 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 1310409, close 399977, bind 137825, connect 783014, delroute 0 10.01 real 3.80 user 18.56 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 1374883, close 481707, bind 280959, connect 430199, delroute 0 10.08 real 3.52 user 18.98 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 1114010, close 189213, bind 0, connect 752766, delroute 184465 10.04 real 3.49 user 15.33 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1195861, close 372179, bind 1268971, connect 0, delroute 0 10.01 real 4.08 user 16.34 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 992015, close 283415, bind 0, connect 521299, delroute 0 10.01 real 2.77 user 14.97 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1042041, close 310344, bind 608103, connect 257585, delroute 0 10.02 real 3.36 user 12.70 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 355849, close 114518, bind 115362, connect 69961, delroute 0 10.49 real 0.97 user 19.93 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1087604, close 545569, bind 407539, connect 235122, delroute 0 10.01 real 3.65 user 14.50 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 1009788, close 453069, bind 135098, connect 403937, delroute 0 0m10.02s real 0m02.82s user 0m14.16s 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 1187308, close 389337, bind 443795, connect 186408, delroute 0 0m10.01s real 0m03.13s user 0m14.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 674794, close 608542, bind 0, connect 227336, delroute 33669 10.01 real 1.73 user 14.55 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 905206, close 182895, bind 1553855, connect 0, delroute 0 10.00 real 3.29 user 16.73 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 669253, close 216897, bind 0, connect 1541857, delroute 0 10.01 real 3.44 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 680195, close 286955, bind 903794, connect 646299, delroute 0 10.01 real 3.83 user 13.23 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 132153, close 33522, bind 74404, connect 55276, delroute 0 10.77 real 0.85 user 10.39 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 601152, close 280223, bind 751858, connect 398770, delroute 0 10.01 real 3.42 user 12.99 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 620072, close 200012, bind 174504, connect 914821, delroute 0 0m10.10s real 0m03.60s user 0m13.24s 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 695444, close 266510, bind 860594, connect 512658, delroute 0 0m10.02s real 0m03.55s user 0m14.17s 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 214355, close 144103, bind 0, connect 656936, delroute 27764 10.01 real 1.99 user 14.48 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 1105568, close 276400, bind 786820, connect 0, delroute 0 10.00 real 3.36 user 17.08 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 1117122, close 160158, bind 0, connect 525094, delroute 0 10.00 real 3.17 user 16.91 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 1068239, close 234942, bind 348947, connect 345036, delroute 0 10.04 real 3.15 user 16.60 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 947381, close 106462, bind 306453, connect 272581, delroute 0 10.57 real 2.65 user 16.18 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 868957, close 381955, bind 454293, connect 528879, delroute 0 10.02 real 3.33 user 15.41 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 917883, close 175387, bind 80455, connect 698952, delroute 0 10.01 real 3.31 user 14.72 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 966786, close 262037, bind 455906, connect 445217, delroute 0 10.01 real 3.24 user 16.03 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 267214, close 466942, bind 0, connect 598810, delroute 52802 10.02 real 2.09 user 13.30 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 122714 1.01 real 0.14 user 0.85 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 8007 1.01 real 0.03 user 0.85 sys