==== 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 1234528, close 462430, bind 193761, connect 208121, delroute 0 10.01 real 6.18 user 21.76 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1530781, close 248138, bind 900844, connect 0, delroute 0 10.01 real 4.44 user 23.30 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1358822, close 336423, bind 0, connect 490215, delroute 0 10.00 real 4.12 user 22.64 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1112264, close 360931, bind 536944, connect 332966, delroute 0 10.00 real 3.30 user 16.58 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 393385, close 69062, bind 76334, connect 60961, delroute 0 10.49 real 1.39 user 24.97 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1149199, close 747984, bind 391591, connect 247762, delroute 0 10.01 real 3.72 user 16.48 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 1074693, close 296185, bind 83660, connect 500164, delroute 0 10.02 real 2.92 user 16.37 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 1221224, close 455906, bind 494757, connect 286707, delroute 0 10.01 real 3.88 user 16.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 1121370, close 219140, bind 0, connect 447119, delroute 194918 10.02 real 3.36 user 17.96 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 938269, close 132844, bind 1462755, connect 0, delroute 0 10.02 real 3.55 user 15.90 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 765232, close 258325, bind 0, connect 1633315, delroute 0 10.01 real 4.35 user 14.25 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 705382, close 254303, bind 856139, connect 720249, delroute 0 10.01 real 3.31 user 12.98 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 111504, close 19218, bind 108376, connect 60697, delroute 0 10.92 real 0.83 user 10.97 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 644142, close 215851, bind 609644, connect 352911, delroute 0 10.01 real 3.47 user 13.86 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 646088, close 123752, bind 152234, connect 370210, delroute 0 10.01 real 3.52 user 13.52 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 765625, close 176570, bind 492773, connect 183740, delroute 0 10.01 real 3.13 user 14.27 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 637221, close 125328, bind 0, connect 363712, delroute 81881 10.01 real 3.13 user 14.04 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 1342829, close 363669, bind 994434, connect 0, delroute 0 10.01 real 3.98 user 17.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 1307464, close 423397, bind 0, connect 724464, delroute 0 10.01 real 3.63 user 18.64 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 1213822, close 459313, bind 457006, connect 515011, delroute 0 10.02 real 4.09 user 16.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 1047566, close 257231, bind 430297, connect 341872, delroute 0 10.61 real 3.26 user 15.68 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 1187692, close 563079, bind 411432, connect 415177, delroute 0 10.01 real 3.77 user 17.32 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 1140811, close 345032, bind 83128, connect 902272, delroute 0 10.02 real 4.24 user 16.42 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 1111252, close 465007, bind 525052, connect 525782, delroute 0 10.01 real 3.80 user 15.92 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 915078, close 342415, bind 0, connect 776427, delroute 216558 10.10 real 3.85 user 14.36 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1323095, close 214934, bind 888147, connect 0, delroute 0 10.01 real 4.11 user 16.88 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1030164, close 327981, bind 0, connect 347654, delroute 0 10.09 real 2.93 user 13.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 1113312, close 367964, bind 477474, connect 277777, delroute 0 10.16 real 3.26 user 14.92 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 521083, close 153463, bind 119519, connect 82026, delroute 0 10.57 real 1.27 user 17.67 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1110059, close 440367, bind 412482, connect 182517, delroute 0 10.01 real 3.89 user 15.49 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 1115274, close 346279, bind 161423, connect 392203, delroute 0 0m10.00s real 0m03.03s user 0m15.43s 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 1193649, close 323995, bind 397587, connect 213019, delroute 0 0m10.02s real 0m03.23s user 0m15.13s 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 453469, close 546532, bind 0, connect 490985, delroute 40250 10.01 real 2.13 user 14.19 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 839481, close 192213, bind 1786613, connect 0, delroute 0 10.02 real 3.92 user 15.38 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 667310, close 275687, bind 0, connect 1368457, delroute 0 10.02 real 3.59 user 13.30 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 674936, close 246406, bind 871996, connect 667251, delroute 0 10.03 real 3.90 user 13.55 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 135764, close 52079, bind 125602, connect 70905, delroute 0 10.74 real 0.90 user 11.05 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 601105, close 290811, bind 698489, connect 503706, delroute 0 10.04 real 3.66 user 13.32 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 555142, close 154366, bind 207097, connect 996595, delroute 0 0m10.02s real 0m03.35s user 0m13.40s 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 644803, close 226044, bind 776265, connect 498800, delroute 0 0m10.01s real 0m03.24s user 0m13.78s 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 212280, close 147005, bind 0, connect 770142, delroute 29877 10.02 real 2.27 user 14.32 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 1138126, close 281194, bind 711240, connect 0, delroute 0 10.01 real 3.32 user 18.64 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 957039, close 249548, bind 0, connect 710386, delroute 0 10.01 real 3.73 user 14.89 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 1027813, close 227778, bind 444538, connect 435427, delroute 0 10.01 real 3.47 user 15.68 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 851325, close 124457, bind 424873, connect 291652, delroute 0 10.59 real 2.90 user 14.79 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 954240, close 359009, bind 443890, connect 371521, delroute 0 10.01 real 3.09 user 16.17 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 993039, close 399803, bind 78304, connect 529294, delroute 0 10.02 real 3.64 user 15.97 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 1089727, close 254305, bind 320744, connect 369782, delroute 0 10.00 real 2.82 user 17.22 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 337821, close 415532, bind 0, connect 620702, delroute 47085 10.01 real 1.81 user 12.58 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 125271 1.00 real 0.18 user 0.79 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 7784 1.01 real 0.01 user 0.91 sys