==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || doas -n sysctl kern.maxfiles=110000 kern.maxfiles: 7030 -> 110000 ==== run-default ==== cc -O2 -pipe -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 1297544, close 131400, bind 89269, connect 125258, delroute 0 10.00 real 7.12 user 20.06 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1387666, close 104981, bind 814288, connect 0, delroute 0 10.01 real 6.30 user 19.67 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1441605, close 77798, bind 0, connect 220988, delroute 0 10.00 real 5.32 user 19.42 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1397055, close 83187, bind 290552, connect 132419, delroute 0 10.00 real 5.63 user 18.14 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 1007812, close 120948, bind 85629, connect 72135, delroute 0 10.60 real 3.49 user 18.42 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1218575, close 206451, bind 413759, connect 233508, delroute 0 10.01 real 5.09 user 16.80 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 1393035, close 65536, bind 88160, connect 136461, delroute 0 10.01 real 4.25 user 15.91 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 1424403, close 73797, bind 172785, connect 86867, delroute 0 10.01 real 5.13 user 17.28 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 1479224, close 66340, bind 0, connect 121002, delroute 65487 10.02 real 4.39 user 17.77 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 912955, close 351960, bind 1923706, connect 0, delroute 0 10.01 real 3.51 user 17.72 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 867410, close 149782, bind 0, connect 1301396, delroute 0 10.01 real 3.32 user 15.59 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 863246, close 198029, bind 786710, connect 810096, delroute 0 10.16 real 3.89 user 15.80 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 173076, close 48090, bind 103770, connect 41513, delroute 0 11.00 real 0.95 user 12.63 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 807172, close 257699, bind 777325, connect 737373, delroute 0 10.01 real 3.69 user 14.93 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 749592, close 75879, bind 101631, connect 234596, delroute 0 10.00 real 3.29 user 15.90 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 817124, close 232736, bind 538676, connect 238397, delroute 0 10.01 real 3.44 user 16.06 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 765904, close 49957, bind 0, connect 203788, delroute 103742 10.01 real 3.09 user 15.98 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 1333795, close 319009, bind 709865, connect 0, delroute 0 10.01 real 5.11 user 17.72 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 1544668, close 47504, bind 0, connect 102188, delroute 0 10.02 real 4.93 user 18.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 1300427, close 162488, bind 249684, connect 193269, delroute 0 10.00 real 4.91 user 16.70 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 1259103, close 47594, bind 242662, connect 133130, delroute 0 10.56 real 3.89 user 16.30 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 1262091, close 103516, bind 334328, connect 174313, delroute 0 10.02 real 5.11 user 15.65 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 1331781, close 61091, bind 42290, connect 222751, delroute 0 10.02 real 5.50 user 17.48 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 1258433, close 73101, bind 348311, connect 164455, delroute 0 10.01 real 4.71 user 15.15 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 1275180, close 108458, bind 0, connect 249961, delroute 105798 10.01 real 4.36 user 13.92 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1481001, close 143655, bind 554795, connect 0, delroute 0 10.01 real 5.53 user 17.40 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1178149, close 130846, bind 0, connect 138534, delroute 0 10.01 real 4.52 user 16.49 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1209012, close 156820, bind 277828, connect 166684, delroute 0 10.08 real 4.17 user 16.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 756795, close 184120, bind 103288, connect 76997, delroute 0 10.65 real 2.34 user 16.23 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1102402, close 141919, bind 443458, connect 149056, delroute 0 10.02 real 4.14 user 14.61 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 1280469, close 106440, bind 89631, connect 163039, delroute 0 0m10.04s real 0m04.32s user 0m17.27s 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 1206287, close 149527, bind 297667, connect 154243, delroute 0 0m10.02s real 0m04.50s user 0m15.80s 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 645829, close 378772, bind 0, connect 253457, delroute 32123 10.02 real 2.40 user 16.31 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 833457, close 279330, bind 1919160, connect 0, delroute 0 10.02 real 3.93 user 16.09 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 818989, close 127351, bind 0, connect 1376245, delroute 0 10.02 real 3.91 user 15.36 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 803325, close 199098, bind 795632, connect 523233, delroute 0 10.01 real 3.69 user 15.03 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 189594, close 48918, bind 131954, connect 48041, delroute 0 10.88 real 0.85 user 11.92 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 764691, close 218933, bind 791081, connect 503310, delroute 0 10.03 real 3.49 user 15.82 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 765104, close 158293, bind 207756, connect 912965, delroute 0 0m10.02s real 0m03.34s user 0m15.72s 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 798801, close 162257, bind 844698, connect 677070, delroute 0 0m10.03s real 0m03.61s user 0m15.25s 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 376492, close 146984, bind 0, connect 598731, delroute 30122 10.02 real 2.39 user 16.81 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 1082228, close 156383, bind 704317, connect 0, delroute 0 10.02 real 6.24 user 17.81 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 1222178, close 59615, bind 0, connect 168324, delroute 0 10.00 real 5.36 user 17.77 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 1145928, close 66179, bind 140687, connect 83714, delroute 0 10.01 real 4.96 user 16.10 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 947001, close 54503, bind 224914, connect 119042, delroute 0 10.54 real 4.44 user 15.57 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 906375, close 95642, bind 516653, connect 488912, delroute 0 10.01 real 5.24 user 16.76 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 1152626, close 87159, bind 60209, connect 248367, delroute 0 10.01 real 4.74 user 17.21 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 1123257, close 73203, bind 213747, connect 124358, delroute 0 10.02 real 4.93 user 16.98 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 500257, close 174629, bind 0, connect 404267, delroute 46386 10.02 real 2.29 user 16.02 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 124330 1.01 real 0.16 user 0.75 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 7856 1.00 real 0.03 user 0.88 sys