==== 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 1336798, close 77036, bind 58820, connect 117922, delroute 0 10.00 real 7.41 user 20.64 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1392354, close 91063, bind 729768, connect 0, delroute 0 10.01 real 6.44 user 19.86 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1560325, close 63960, bind 0, connect 117325, delroute 0 10.01 real 7.39 user 22.18 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1630108, close 55617, bind 86551, connect 26901, delroute 0 10.01 real 7.51 user 22.01 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 1361265, close 60054, bind 45391, connect 31891, delroute 0 10.52 real 6.30 user 23.53 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1442453, close 90490, bind 172787, connect 95756, delroute 0 10.01 real 6.28 user 20.02 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 1606544, close 102587, bind 26285, connect 63913, delroute 0 10.12 real 5.83 user 21.56 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 1543378, close 54722, bind 93794, connect 38393, delroute 0 10.01 real 7.04 user 20.74 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 1450935, close 111276, bind 0, connect 137761, delroute 83405 10.01 real 4.72 user 18.08 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 904998, close 180065, bind 1682283, connect 0, delroute 0 10.00 real 3.30 user 17.36 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 824097, close 146150, bind 0, connect 1247881, delroute 0 10.06 real 3.87 user 15.24 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 898635, close 149862, bind 746565, connect 498960, delroute 0 10.03 real 3.83 user 16.46 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 134229, close 31863, bind 112170, connect 43728, delroute 0 10.92 real 0.72 user 11.96 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 841808, close 175201, bind 740038, connect 638129, delroute 0 10.01 real 3.60 user 15.49 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 770395, close 117331, bind 86227, connect 209235, delroute 0 10.01 real 3.66 user 16.21 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 778014, close 144391, bind 356612, connect 197693, delroute 0 10.00 real 3.06 user 16.14 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 738924, close 112534, bind 0, connect 312960, delroute 85036 10.01 real 3.48 user 15.62 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 1428620, close 176197, bind 406219, connect 0, delroute 0 10.00 real 4.46 user 16.21 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 1640878, close 99885, bind 0, connect 40075, delroute 0 10.01 real 5.30 user 18.80 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 1448274, close 39278, bind 201943, connect 65001, delroute 0 10.02 real 4.34 user 15.36 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 1348564, close 129462, bind 162419, connect 35919, delroute 0 10.49 real 4.17 user 17.04 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 1437817, close 129702, bind 118383, connect 73878, delroute 0 10.01 real 3.98 user 17.90 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 1318594, close 109906, bind 67181, connect 398784, delroute 0 10.01 real 5.60 user 15.13 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 1474880, close 101279, bind 136148, connect 69796, delroute 0 10.06 real 5.65 user 18.43 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 1529707, close 86221, bind 0, connect 104819, delroute 62110 10.07 real 4.94 user 18.23 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1262865, close 107503, bind 788179, connect 0, delroute 0 10.01 real 5.07 user 16.81 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1231503, close 164809, bind 0, connect 164013, delroute 0 10.01 real 3.92 user 16.30 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1116932, close 176243, bind 369188, connect 240840, delroute 0 10.02 real 4.50 user 14.68 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 999650, close 166965, bind 95844, connect 78117, delroute 0 10.61 real 2.87 user 18.54 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1165983, close 225370, bind 320852, connect 95544, delroute 0 10.03 real 4.59 user 16.74 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 1247503, close 135842, bind 56588, connect 127570, delroute 0 0m10.01s real 0m04.15s user 0m16.11s 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 1112969, close 141793, bind 266220, connect 162872, delroute 0 0m10.01s real 0m03.80s user 0m14.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 710349, close 271594, bind 0, connect 147051, delroute 33569 10.01 real 2.47 user 17.78 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 866214, close 163787, bind 1443251, connect 0, delroute 0 10.00 real 2.96 user 15.40 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 730898, close 210131, bind 0, connect 1417774, delroute 0 10.02 real 3.55 user 13.67 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 826458, close 153648, bind 643399, connect 622342, delroute 0 10.02 real 3.47 user 15.84 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 181100, close 52581, bind 110631, connect 54634, delroute 0 10.80 real 1.02 user 11.86 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 733010, close 223002, bind 645475, connect 381560, delroute 0 10.03 real 3.70 user 16.13 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 772500, close 105099, bind 165114, connect 963564, delroute 0 0m10.01s real 0m03.66s user 0m15.67s 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 793090, close 205877, bind 726517, connect 582713, delroute 0 0m10.01s real 0m03.32s user 0m15.03s 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 316719, close 168309, bind 0, connect 522107, delroute 29394 10.03 real 2.03 user 17.34 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 1084042, close 174668, bind 636969, connect 0, delroute 0 10.06 real 4.39 user 15.32 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 1164258, close 31053, bind 0, connect 176887, delroute 0 10.01 real 4.66 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 1249111, close 78616, bind 161841, connect 65631, delroute 0 10.01 real 5.01 user 18.01 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 1047148, close 36645, bind 158675, connect 64739, delroute 0 10.53 real 4.35 user 17.69 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 1115791, close 84922, bind 114193, connect 81770, delroute 0 10.02 real 4.86 user 16.16 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 1084406, close 40307, bind 68518, connect 279560, delroute 0 10.02 real 4.91 user 15.54 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 1096771, close 74246, bind 329983, connect 162378, delroute 0 10.02 real 5.24 user 16.02 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 487175, close 198322, bind 0, connect 443051, delroute 44785 10.04 real 2.35 user 15.52 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 99687 1.01 real 0.09 user 0.68 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 6456 1.01 real 0.02 user 0.80 sys