==== 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 1262246, close 139387, bind 117986, connect 183014, delroute 0 10.00 real 6.85 user 19.49 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1499298, close 80566, bind 450274, connect 0, delroute 0 10.00 real 7.42 user 22.70 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1605067, close 33965, bind 0, connect 54647, delroute 0 10.01 real 6.92 user 23.22 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1437312, close 72831, bind 252142, connect 105705, delroute 0 10.01 real 5.69 user 19.05 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 1114402, close 135645, bind 79181, connect 74140, delroute 0 10.63 real 4.18 user 20.33 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1252499, close 81670, bind 362515, connect 240328, delroute 0 10.02 real 5.07 user 16.15 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 1471359, close 72787, bind 68211, connect 126551, delroute 0 10.02 real 4.61 user 17.71 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 1375922, close 74680, bind 205542, connect 70752, delroute 0 10.01 real 4.72 user 15.61 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 1568188, close 66169, bind 0, connect 63841, delroute 53498 10.01 real 5.32 user 19.15 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 906064, close 213230, bind 1846116, connect 0, delroute 0 10.02 real 3.46 user 16.84 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 872051, close 97418, bind 0, connect 1286142, delroute 0 10.01 real 3.90 user 15.74 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 843940, close 224901, bind 783104, connect 628387, delroute 0 10.01 real 3.47 user 15.70 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 132115, close 37056, bind 123644, connect 44202, delroute 0 10.95 real 0.83 user 12.15 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 851154, close 227463, bind 813115, connect 595184, delroute 0 10.01 real 3.94 user 15.51 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 785773, close 83704, bind 97692, connect 211685, delroute 0 10.00 real 3.65 user 16.33 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 869893, close 129320, bind 484014, connect 209807, delroute 0 10.01 real 3.36 user 15.93 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 754220, close 73097, bind 0, connect 264952, delroute 71861 10.01 real 3.39 user 15.92 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 1226672, close 161004, bind 1561460, connect 0, delroute 0 10.01 real 4.69 user 16.30 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 1509247, close 84521, bind 0, connect 289888, delroute 0 10.01 real 5.97 user 18.72 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 1379792, close 95884, bind 275270, connect 120699, delroute 0 10.01 real 5.38 user 17.65 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 1192886, close 32630, bind 182649, connect 130796, delroute 0 10.51 real 4.57 user 15.75 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 1549480, close 67987, bind 88994, connect 36809, delroute 0 10.01 real 5.12 user 18.79 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 1364506, close 75916, bind 56021, connect 292252, delroute 0 10.01 real 5.28 user 16.26 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 1400334, close 121888, bind 139848, connect 82937, delroute 0 10.02 real 4.92 user 16.96 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 1271659, close 100184, bind 0, connect 230629, delroute 88538 10.02 real 5.11 user 14.71 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1207085, close 204696, bind 879359, connect 0, delroute 0 10.01 real 5.19 user 15.94 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1270089, close 151525, bind 0, connect 134954, delroute 0 10.01 real 4.15 user 17.42 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1230056, close 142989, bind 254359, connect 108008, delroute 0 10.05 real 4.11 user 15.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 907256, close 155464, bind 81805, connect 80524, delroute 0 10.84 real 3.27 user 16.02 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1181188, close 165795, bind 269785, connect 96468, delroute 0 10.01 real 4.16 user 15.71 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 1211971, close 101619, bind 46750, connect 134164, delroute 0 0m10.04s real 0m04.22s user 0m15.84s 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 1257713, close 130675, bind 384484, connect 60879, delroute 0 0m10.01s real 0m04.26s user 0m15.82s 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 780184, close 266506, bind 0, connect 174547, delroute 34374 10.01 real 2.19 user 19.30 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 814067, close 313029, bind 2120167, connect 0, delroute 0 10.02 real 4.08 user 16.55 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 774711, close 231048, bind 0, connect 1279369, delroute 0 10.02 real 4.02 user 14.50 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 833200, close 186847, bind 801804, connect 482630, delroute 0 10.01 real 3.73 user 15.67 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 207281, close 62826, bind 122407, connect 59166, delroute 0 10.73 real 1.08 user 12.58 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 718068, close 187879, bind 845328, connect 528907, delroute 0 10.03 real 3.56 user 15.46 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 810859, close 79315, bind 167543, connect 994080, delroute 0 0m10.03s real 0m03.53s user 0m15.32s 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 854663, close 137390, bind 631490, connect 679113, delroute 0 0m10.01s real 0m04.03s user 0m16.23s 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 364956, close 113599, bind 0, connect 709972, delroute 28375 10.01 real 2.09 user 17.36 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 1103001, close 75340, bind 470077, connect 0, delroute 0 10.01 real 5.20 user 17.12 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 1136523, close 58855, bind 0, connect 127756, delroute 0 10.02 real 4.45 user 16.67 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 1096027, close 44191, bind 255258, connect 151185, delroute 0 10.01 real 4.81 user 17.08 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 1002820, close 34017, bind 166382, connect 48249, delroute 0 10.45 real 5.22 user 16.93 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 1020308, close 132703, bind 319286, connect 254428, delroute 0 10.01 real 4.99 user 15.88 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 1204463, close 47290, bind 72685, connect 226769, delroute 0 10.01 real 4.32 user 17.17 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 1085534, close 103611, bind 233216, connect 114675, delroute 0 10.01 real 3.39 user 15.92 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 449318, close 163340, bind 0, connect 497990, delroute 51413 10.05 real 2.75 user 15.50 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 128099 1.02 real 0.13 user 0.80 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 7941 1.01 real 0.02 user 0.95 sys