==== 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 1258191, close 768755, bind 289022, connect 274064, delroute 0 10.00 real 5.98 user 22.36 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1618397, close 496363, bind 1302180, connect 0, delroute 0 10.00 real 4.60 user 23.60 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1463669, close 518481, bind 0, connect 599572, delroute 0 10.00 real 3.65 user 22.27 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1392751, close 465580, bind 464534, connect 296260, delroute 0 10.01 real 3.78 user 19.12 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 249228, close 97983, bind 85291, connect 73918, delroute 0 10.53 real 0.62 user 23.99 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1025671, close 780957, bind 730302, connect 409780, delroute 0 10.01 real 3.89 user 16.14 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 1243601, close 393213, bind 55160, connect 542486, delroute 0 10.00 real 3.09 user 17.57 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 1589375, close 437009, bind 283067, connect 230857, delroute 0 10.01 real 3.40 user 19.07 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 1281966, close 231111, bind 0, connect 427561, delroute 160354 10.01 real 3.88 user 17.88 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 854065, close 403446, bind 1151340, connect 0, delroute 0 10.01 real 3.81 user 15.11 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 831268, close 333420, bind 0, connect 827990, delroute 0 10.01 real 3.31 user 14.52 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 897555, close 404872, bind 366363, connect 312431, delroute 0 10.01 real 3.44 user 16.67 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 202527, close 68102, bind 135068, connect 30339, delroute 0 10.64 real 0.63 user 24.32 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 762733, close 388413, bind 463875, connect 217681, delroute 0 10.01 real 3.07 user 14.74 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 750577, close 299091, bind 79693, connect 353737, delroute 0 10.00 real 3.21 user 15.41 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 830496, close 382036, bind 560111, connect 246751, delroute 0 10.00 real 3.43 user 14.05 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 773317, close 341748, bind 0, connect 272509, delroute 148012 10.04 real 2.57 user 16.15 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 1678741, close 377788, bind 644757, connect 0, delroute 0 10.02 real 3.80 user 20.90 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 1774697, close 698480, bind 0, connect 443836, delroute 0 10.01 real 3.46 user 21.51 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 1327132, close 594409, bind 639330, connect 454713, delroute 0 10.03 real 4.06 user 18.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 1291615, close 468687, bind 377257, connect 362671, delroute 0 10.63 real 3.28 user 17.41 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 1346122, close 1013458, bind 306518, connect 303539, delroute 0 10.01 real 4.48 user 18.74 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 1626069, close 445276, bind 58910, connect 443259, delroute 0 10.03 real 3.50 user 19.49 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 1477280, close 448225, bind 373923, connect 451253, delroute 0 10.01 real 4.05 user 18.85 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 1466571, close 348434, bind 0, connect 601294, delroute 136741 10.00 real 3.78 user 18.95 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1732084, close 504254, bind 530244, connect 0, delroute 0 10.01 real 3.97 user 20.82 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1028532, close 291940, bind 0, connect 509889, delroute 0 10.00 real 2.64 user 14.68 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1277078, close 501910, bind 376453, connect 181207, delroute 0 10.01 real 3.43 user 14.27 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 421323, close 132874, bind 94301, connect 101832, delroute 0 10.47 real 0.90 user 20.48 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1133100, close 800597, bind 377639, connect 267485, delroute 0 10.01 real 3.47 user 15.11 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 1080682, close 422934, bind 115575, connect 407198, delroute 0 0m10.04s real 0m03.53s user 0m14.17s 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 1273301, close 408128, bind 433465, connect 163132, delroute 0 0m10.01s real 0m03.00s user 0m15.02s 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 502201, close 609642, bind 0, connect 285853, delroute 45308 10.01 real 1.81 user 13.61 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 846183, close 402589, bind 1010110, connect 0, delroute 0 10.01 real 3.35 user 15.16 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 681295, close 397301, bind 0, connect 895482, delroute 0 10.01 real 3.06 user 12.25 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 672594, close 429599, bind 681029, connect 448539, delroute 0 10.01 real 2.89 user 11.74 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 172712, close 54841, bind 105423, connect 41297, delroute 0 10.67 real 0.73 user 24.56 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 775534, close 411956, bind 486662, connect 359282, delroute 0 10.01 real 3.74 user 17.45 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 765699, close 251003, bind 113769, connect 340071, delroute 0 0m10.01s real 0m02.29s user 0m18.83s 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 888558, close 262575, bind 371619, connect 201267, delroute 0 0m10.01s real 0m03.24s user 0m17.06s 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 112745, close 197153, bind 0, connect 22681, delroute 81595 10.01 real 0.58 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 1500134, close 230620, bind 408154, connect 0, delroute 0 10.06 real 3.15 user 20.89 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 1385953, close 265815, bind 0, connect 341071, delroute 0 10.00 real 3.99 user 20.43 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 1241279, close 252037, bind 271842, connect 344712, delroute 0 10.00 real 2.85 user 18.16 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 1098934, close 231829, bind 299553, connect 274470, delroute 0 10.58 real 3.18 user 16.45 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 1073928, close 390194, bind 351959, connect 355915, delroute 0 10.01 real 3.59 user 16.45 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 1198074, close 194451, bind 52704, connect 472366, delroute 0 10.02 real 3.69 user 16.79 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 1163071, close 281205, bind 322397, connect 339234, delroute 0 10.01 real 2.93 user 15.75 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 349903, close 393895, bind 0, connect 717703, delroute 50700 10.01 real 2.16 user 13.10 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 120850 1.01 real 0.18 user 0.78 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 7547 1.03 real 0.04 user 0.84 sys