==== 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 1328132, close 185080, bind 61457, connect 120363, delroute 0 10.00 real 7.44 user 19.67 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1457493, close 100196, bind 621066, connect 0, delroute 0 10.01 real 6.64 user 21.18 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1466043, close 68228, bind 0, connect 186221, delroute 0 10.01 real 6.16 user 19.39 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1420363, close 133229, bind 260873, connect 115246, delroute 0 10.01 real 5.59 user 19.40 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 1045189, close 123980, bind 83582, connect 64101, delroute 0 10.59 real 3.97 user 19.02 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1268920, close 130502, bind 360846, connect 181481, delroute 0 10.00 real 4.99 user 15.41 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 1490875, close 51333, bind 62326, connect 134212, delroute 0 10.01 real 4.77 user 17.44 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 1366833, close 104831, bind 222679, connect 83786, delroute 0 10.01 real 5.15 user 16.36 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 1379498, close 82187, bind 0, connect 138012, delroute 54557 10.02 real 5.41 user 17.45 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 925181, close 289209, bind 1577738, connect 0, delroute 0 10.01 real 3.67 user 16.47 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 899028, close 138064, bind 0, connect 1424614, delroute 0 10.03 real 3.74 user 16.48 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 863660, close 164105, bind 637414, connect 599010, delroute 0 10.04 real 4.40 user 16.30 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 179872, close 52746, bind 94560, connect 54043, delroute 0 10.79 real 0.87 user 12.22 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 778725, close 203960, bind 616632, connect 562052, delroute 0 10.01 real 3.95 user 15.72 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 797762, close 70628, bind 136765, connect 191789, delroute 0 10.01 real 3.16 user 15.82 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 772695, close 132687, bind 398196, connect 288391, delroute 0 10.00 real 2.88 user 15.82 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 743514, close 111594, bind 0, connect 249140, delroute 82407 10.02 real 2.96 user 16.19 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 1317989, close 372177, bind 724988, connect 0, delroute 0 10.01 real 4.39 user 16.07 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 1455932, close 165444, bind 0, connect 361077, delroute 0 10.01 real 5.70 user 18.11 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 1437483, close 60358, bind 298138, connect 152197, delroute 0 10.01 real 5.86 user 17.47 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 1271916, close 55042, bind 193479, connect 97010, delroute 0 10.48 real 4.73 user 17.13 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 1109028, close 201735, bind 315435, connect 287036, delroute 0 10.01 real 4.78 user 14.40 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 1500505, close 127903, bind 52436, connect 140788, delroute 0 10.01 real 4.81 user 17.20 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 1314256, close 78152, bind 176614, connect 124761, delroute 0 10.06 real 4.51 user 15.57 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 1369234, close 91663, bind 0, connect 131289, delroute 111487 10.02 real 4.96 user 17.18 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1169456, close 141365, bind 1020894, connect 0, delroute 0 10.08 real 5.04 user 16.71 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1195961, close 212590, bind 0, connect 169536, delroute 0 10.02 real 4.28 user 15.97 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1177948, close 225122, bind 170179, connect 118236, delroute 0 10.06 real 4.40 user 15.79 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 1007261, close 148727, bind 58573, connect 82900, delroute 0 10.73 real 2.88 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 1162801, close 163542, bind 457616, connect 271098, delroute 0 10.17 real 4.33 user 16.30 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 1131412, close 143056, bind 124517, connect 259758, delroute 0 0m10.07s real 0m04.67s user 0m16.02s 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 1189823, close 87159, bind 260208, connect 112672, delroute 0 0m10.02s real 0m04.61s user 0m16.02s 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 812061, close 242353, bind 0, connect 144637, delroute 31929 10.01 real 2.27 user 18.80 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 837624, close 297816, bind 2102744, connect 0, delroute 0 10.01 real 3.68 user 17.25 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 826072, close 169755, bind 0, connect 1197780, delroute 0 10.07 real 3.73 user 16.18 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 799186, close 155158, bind 805660, connect 643955, delroute 0 10.01 real 3.74 user 15.56 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 175400, close 63601, bind 131163, connect 48939, delroute 0 10.75 real 0.80 user 12.28 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 734619, close 157105, bind 635532, connect 233777, delroute 0 10.05 real 3.10 user 15.99 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 745484, close 162989, bind 174551, connect 1085204, delroute 0 0m10.01s real 0m03.70s user 0m15.20s 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 839071, close 162409, bind 720140, connect 673549, delroute 0 0m10.06s real 0m03.64s user 0m15.43s 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 380092, close 137280, bind 0, connect 672239, delroute 29897 10.03 real 2.39 user 16.95 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 936497, close 273808, bind 1128610, connect 0, delroute 0 10.01 real 5.75 user 16.28 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 1179091, close 67541, bind 0, connect 212298, delroute 0 10.01 real 4.61 user 16.44 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 1168321, close 129796, bind 252963, connect 160429, delroute 0 10.03 real 4.83 user 16.90 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 1032906, close 47036, bind 178670, connect 84145, delroute 0 10.50 real 4.83 user 15.95 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 1134737, close 75604, bind 130500, connect 89819, delroute 0 10.01 real 4.02 user 16.17 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 1168730, close 62223, bind 61244, connect 189466, delroute 0 10.02 real 5.37 user 17.32 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 1036649, close 101665, bind 221667, connect 135323, delroute 0 10.01 real 4.52 user 15.07 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 471780, close 188519, bind 0, connect 279305, delroute 47753 10.01 real 2.22 user 15.77 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 128536 1.02 real 0.13 user 0.88 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 8215 1.01 real 0.04 user 0.90 sys