==== 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 1255604, close 136840, bind 90580, connect 171583, delroute 0 10.00 real 6.85 user 20.58 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1481032, close 124487, bind 740570, connect 0, delroute 0 10.00 real 6.26 user 22.19 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1523887, close 103688, bind 0, connect 116115, delroute 0 10.00 real 6.15 user 20.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 1395487, close 129545, bind 277292, connect 147121, delroute 0 10.08 real 5.17 user 18.89 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 1250970, close 108551, bind 64926, connect 49576, delroute 0 10.55 real 4.72 user 19.70 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1093693, close 104061, bind 636356, connect 234943, delroute 0 10.01 real 4.66 user 15.85 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 1450206, close 70663, bind 61200, connect 151710, delroute 0 10.02 real 5.03 user 16.36 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 1265388, close 108299, bind 465971, connect 104984, delroute 0 10.01 real 4.79 user 16.39 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 1388866, close 65157, bind 0, connect 95554, delroute 77627 10.01 real 5.19 user 17.23 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 843307, close 310103, bind 2074486, connect 0, delroute 0 10.01 real 3.84 user 16.57 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 905241, close 126965, bind 0, connect 1108147, delroute 0 10.01 real 4.45 user 16.01 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 870715, close 148263, bind 746260, connect 561348, delroute 0 10.01 real 3.63 user 16.37 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 161978, close 41315, bind 103658, connect 43986, delroute 0 10.67 real 0.82 user 12.21 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 872648, close 183823, bind 809413, connect 540157, delroute 0 10.01 real 3.36 user 15.52 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 709589, close 101516, bind 80052, connect 261309, delroute 0 10.00 real 3.53 user 15.35 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 818348, close 114569, bind 508221, connect 174169, delroute 0 10.00 real 3.42 user 16.19 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 696121, close 91494, bind 0, connect 442588, delroute 101453 10.02 real 3.42 user 15.40 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 1547062, close 58415, bind 175155, connect 0, delroute 0 10.01 real 3.18 user 14.89 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 1486768, close 14022, bind 0, connect 108346, delroute 0 10.03 real 4.37 user 15.96 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 1434866, close 108323, bind 171434, connect 68394, delroute 0 10.01 real 4.25 user 15.67 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 1206511, close 24073, bind 226208, connect 150421, delroute 0 10.52 real 4.84 user 18.15 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 1411357, close 83357, bind 138964, connect 111436, delroute 0 10.01 real 4.33 user 16.52 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 1320658, close 66655, bind 51021, connect 166948, delroute 0 10.01 real 4.94 user 14.78 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 1432656, close 79768, bind 175162, connect 108135, delroute 0 10.00 real 4.93 user 16.12 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 1367862, close 38562, bind 0, connect 180397, delroute 82012 10.01 real 5.60 user 17.24 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1282231, close 134394, bind 704566, connect 0, delroute 0 10.01 real 5.14 user 16.15 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1212073, close 174801, bind 0, connect 174304, delroute 0 10.06 real 3.64 user 16.41 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1259184, close 155124, bind 436777, connect 129305, delroute 0 10.01 real 4.39 user 16.60 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 1016009, close 164714, bind 63142, connect 85292, delroute 0 10.74 real 2.98 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 1200010, close 141423, bind 393455, connect 93672, delroute 0 10.10 real 4.75 user 16.56 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 1196212, close 179878, bind 30931, connect 219293, delroute 0 0m10.01s real 0m04.62s user 0m16.62s 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 1285911, close 119215, bind 207174, connect 71019, delroute 0 0m10.02s real 0m04.74s user 0m15.58s 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 786672, close 250459, bind 0, connect 193572, delroute 35503 10.01 real 2.53 user 19.40 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 799804, close 318636, bind 1960181, connect 0, delroute 0 10.00 real 3.56 user 15.92 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 679396, close 239151, bind 0, connect 1506012, delroute 0 10.04 real 3.80 user 12.61 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 753901, close 247302, bind 851417, connect 755384, delroute 0 10.12 real 3.80 user 14.62 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 189839, close 59424, bind 112347, connect 50680, delroute 0 10.72 real 0.90 user 11.46 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 672283, close 276261, bind 739860, connect 530432, delroute 0 10.01 real 3.20 user 14.94 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 777011, close 171874, bind 186292, connect 1048004, delroute 0 0m10.01s real 0m03.25s user 0m15.10s 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 802512, close 165391, bind 796299, connect 719411, delroute 0 0m10.03s real 0m03.41s user 0m15.11s 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 367090, close 121940, bind 0, connect 534691, delroute 28587 10.02 real 2.19 user 17.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 1084038, close 211243, bind 796330, connect 0, delroute 0 10.03 real 5.18 user 15.93 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 1213307, close 69251, bind 0, connect 179428, delroute 0 10.01 real 5.25 user 16.28 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 1153333, close 66121, bind 151484, connect 105294, delroute 0 10.02 real 4.60 user 16.79 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 1076384, close 52140, bind 197507, connect 63434, delroute 0 10.50 real 3.82 user 16.73 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 1073178, close 88103, bind 266753, connect 164404, delroute 0 10.01 real 4.33 user 16.25 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 1146480, close 48762, bind 52398, connect 197860, delroute 0 10.01 real 4.49 user 16.20 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 1112855, close 117946, bind 174889, connect 114029, delroute 0 10.01 real 4.41 user 16.59 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 450479, close 213799, bind 0, connect 456390, delroute 49005 10.02 real 2.50 user 16.32 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 121868 1.01 real 0.15 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 7535 1.01 real 0.05 user 0.78 sys