==== 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 1221182, close 167029, bind 144906, connect 158454, delroute 0 10.01 real 6.54 user 18.80 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1353095, close 132566, bind 953898, connect 0, delroute 0 10.02 real 6.37 user 19.49 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1389129, close 91871, bind 0, connect 254895, delroute 0 10.00 real 5.60 user 20.14 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1418789, close 78516, bind 234399, connect 108339, delroute 0 10.02 real 5.70 user 18.76 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 1005779, close 118988, bind 64534, connect 55331, delroute 0 10.54 real 3.51 user 17.69 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1319583, close 153513, bind 345340, connect 141157, delroute 0 10.01 real 5.03 user 16.78 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 1443042, close 60323, bind 92290, connect 135331, delroute 0 10.07 real 4.58 user 17.11 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 1367774, close 118846, bind 239602, connect 104186, delroute 0 10.01 real 5.58 user 17.12 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 1354436, close 76325, bind 0, connect 156224, delroute 110308 10.01 real 5.01 user 17.65 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 949639, close 300309, bind 1522882, connect 0, delroute 0 10.09 real 3.34 user 17.19 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 907254, close 79347, bind 0, connect 1263163, delroute 0 10.00 real 3.99 user 16.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 894536, close 150318, bind 686572, connect 664515, delroute 0 10.02 real 3.55 user 16.17 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 197789, close 52851, bind 113466, connect 41645, delroute 0 10.93 real 1.12 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 843397, close 231149, bind 798474, connect 633352, delroute 0 10.04 real 3.78 user 16.08 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 798636, close 78823, bind 76808, connect 374654, delroute 0 10.01 real 3.90 user 16.02 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 775258, close 193872, bind 368247, connect 174582, delroute 0 10.03 real 3.36 user 16.17 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 728881, close 84059, bind 0, connect 211715, delroute 96838 10.01 real 3.36 user 15.05 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 1221158, close 173650, bind 933299, connect 0, delroute 0 10.09 real 3.99 user 15.71 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 1531143, close 78485, bind 0, connect 253007, delroute 0 10.01 real 4.16 user 18.26 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 1538839, close 43814, bind 152144, connect 68242, delroute 0 10.00 real 5.60 user 18.26 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 1264108, close 29599, bind 137091, connect 90335, delroute 0 10.46 real 5.13 user 17.43 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 1477841, close 102041, bind 146560, connect 56550, delroute 0 10.01 real 4.61 user 18.67 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 1381513, close 35269, bind 64378, connect 197172, delroute 0 10.01 real 5.00 user 16.15 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 1359581, close 149075, bind 248744, connect 121519, delroute 0 10.02 real 4.63 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 1334939, close 66594, bind 0, connect 231551, delroute 93584 10.02 real 5.83 user 18.01 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1172431, close 122074, bind 934678, connect 0, delroute 0 10.02 real 4.58 user 15.72 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1208626, close 230730, bind 0, connect 140669, delroute 0 10.05 real 4.68 user 16.26 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1244121, close 133412, bind 233786, connect 138484, delroute 0 10.10 real 4.53 user 17.34 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 1016044, close 143482, bind 67079, connect 54136, delroute 0 10.60 real 3.65 user 16.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 1214939, close 177102, bind 364854, connect 86672, delroute 0 10.00 real 4.62 user 17.26 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 1215178, close 89247, bind 33985, connect 223987, delroute 0 0m10.01s real 0m04.84s user 0m15.87s 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 1288803, close 155425, bind 387796, connect 72849, delroute 0 0m10.05s real 0m04.19s user 0m16.30s 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 800555, close 297318, bind 0, connect 146021, delroute 33245 10.01 real 2.66 user 19.41 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 839965, close 339697, bind 2034385, connect 0, delroute 0 10.01 real 3.98 user 16.53 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 789653, close 139367, bind 0, connect 1411867, delroute 0 10.03 real 3.72 user 14.70 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 835325, close 188012, bind 805173, connect 582229, delroute 0 10.01 real 3.55 user 15.39 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 177473, close 51239, bind 144179, connect 54537, delroute 0 10.83 real 1.08 user 12.24 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 721497, close 163212, bind 852638, connect 548100, delroute 0 10.01 real 3.24 user 14.70 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 762068, close 155232, bind 158469, connect 1007999, delroute 0 0m10.03s real 0m03.47s user 0m14.25s 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 707872, close 252796, bind 930883, connect 649485, delroute 0 0m10.05s real 0m03.70s user 0m13.49s 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 381151, close 159114, bind 0, connect 923291, delroute 29256 10.01 real 2.32 user 15.27 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 1050971, close 219899, bind 663836, connect 0, delroute 0 10.01 real 4.32 user 15.78 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 1124325, close 46360, bind 0, connect 373391, delroute 0 10.06 real 4.22 user 14.96 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 1105537, close 61009, bind 235433, connect 211411, delroute 0 10.01 real 5.12 user 16.89 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 993385, close 40248, bind 186161, connect 84799, delroute 0 10.50 real 4.41 user 16.51 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 1086714, close 90345, bind 226088, connect 153806, delroute 0 10.01 real 4.65 user 16.99 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 1064657, close 35728, bind 62638, connect 411150, delroute 0 10.01 real 6.16 user 17.44 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 1078548, close 98613, bind 271075, connect 151894, delroute 0 10.01 real 4.67 user 14.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 451799, close 310140, bind 0, connect 502192, delroute 43838 10.01 real 2.51 user 15.06 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 113111 1.01 real 0.14 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 7191 1.01 real 0.04 user 0.73 sys