==== 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 1299465, close 143525, bind 100103, connect 131692, delroute 0 10.00 real 7.37 user 19.40 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1531470, close 61473, bind 357272, connect 0, delroute 0 10.02 real 7.90 user 22.66 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1624698, close 103821, bind 0, connect 74761, delroute 0 10.02 real 7.33 user 22.36 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1300699, close 168384, bind 347867, connect 203948, delroute 0 10.03 real 5.27 user 16.64 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 1261353, close 88602, bind 68745, connect 56732, delroute 0 10.55 real 5.42 user 19.82 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1233731, close 187821, bind 431436, connect 130064, delroute 0 10.01 real 4.55 user 14.98 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 1361594, close 73779, bind 90437, connect 194088, delroute 0 10.01 real 4.70 user 16.07 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 1343699, close 124361, bind 261490, connect 83808, delroute 0 10.01 real 4.72 user 16.05 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 1503432, close 89662, bind 0, connect 89607, delroute 53753 10.01 real 4.00 user 17.62 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 992346, close 179063, bind 1512445, connect 0, delroute 0 10.01 real 2.99 user 17.96 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 898679, close 175928, bind 0, connect 1090538, delroute 0 10.01 real 4.01 user 15.97 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 818563, close 196447, bind 931678, connect 705025, delroute 0 10.01 real 3.82 user 15.01 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 142696, close 21097, bind 81018, connect 36738, delroute 0 10.87 real 0.73 user 12.52 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 865588, close 228562, bind 830857, connect 666368, delroute 0 10.01 real 3.45 user 15.54 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 755477, close 99695, bind 96183, connect 232441, delroute 0 10.06 real 3.61 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 842397, close 98079, bind 455613, connect 157446, delroute 0 10.01 real 3.28 user 16.63 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 805850, close 82426, bind 0, connect 160291, delroute 58853 10.01 real 3.95 user 16.11 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 1273833, close 166453, bind 774581, connect 0, delroute 0 10.01 real 4.97 user 15.97 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 1667482, close 117791, bind 0, connect 20690, delroute 0 10.05 real 5.07 user 21.50 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 1420810, close 78783, bind 192487, connect 175467, delroute 0 10.02 real 5.47 user 17.54 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 1208793, close 43609, bind 181694, connect 101584, delroute 0 10.53 real 4.14 user 14.77 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 1380178, close 102067, bind 119562, connect 109964, delroute 0 10.01 real 4.76 user 16.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 1403656, close 46978, bind 30186, connect 172829, delroute 0 10.01 real 4.62 user 14.93 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 1317133, close 75398, bind 266378, connect 150458, delroute 0 10.02 real 5.54 user 16.95 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 1252103, close 87323, bind 0, connect 217643, delroute 110165 10.02 real 4.65 user 15.53 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1158377, close 119921, bind 1054597, connect 0, delroute 0 10.02 real 4.66 user 16.01 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1300339, close 158098, bind 0, connect 110031, delroute 0 10.04 real 4.23 user 17.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 1272473, close 113813, bind 212708, connect 114336, delroute 0 10.10 real 4.67 user 15.62 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 1014607, close 204425, bind 77715, connect 72847, delroute 0 10.60 real 3.29 user 17.12 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1176965, close 220255, bind 233112, connect 133504, delroute 0 10.10 real 4.69 user 15.49 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 1081085, close 87829, bind 107526, connect 180401, delroute 0 0m10.00s real 0m04.44s user 0m14.50s 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 1175574, close 118066, bind 270549, connect 97803, delroute 0 0m10.04s real 0m04.78s user 0m14.95s 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 702483, close 221582, bind 0, connect 199357, delroute 34688 10.01 real 2.84 user 17.61 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 834500, close 273071, bind 1945753, connect 0, delroute 0 10.05 real 3.69 user 16.87 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 799599, close 189326, bind 0, connect 1545578, delroute 0 10.01 real 3.92 user 14.76 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 790454, close 217129, bind 866421, connect 687975, delroute 0 10.02 real 3.33 user 15.70 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 179290, close 60746, bind 129772, connect 55468, delroute 0 10.71 real 0.76 user 12.25 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 757879, close 168868, bind 577578, connect 273823, delroute 0 10.02 real 3.39 user 15.53 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 782964, close 159638, bind 217646, connect 929717, delroute 0 0m10.01s real 0m03.73s 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 830608, close 200933, bind 755346, connect 563346, delroute 0 0m10.01s real 0m03.54s user 0m15.74s 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 389240, close 143107, bind 0, connect 580210, delroute 29352 10.02 real 2.24 user 16.78 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 1098655, close 119535, bind 736642, connect 0, delroute 0 10.01 real 4.86 user 17.61 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 1068588, close 82601, bind 0, connect 233313, delroute 0 10.01 real 5.17 user 16.50 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 1100499, close 80079, bind 270127, connect 192467, delroute 0 10.01 real 5.59 user 16.69 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 1061543, close 27532, bind 134067, connect 72181, delroute 0 10.47 real 4.10 user 17.85 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 1090820, close 125498, bind 180085, connect 107961, delroute 0 10.01 real 4.55 user 16.28 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 1147963, close 80428, bind 40358, connect 206849, delroute 0 10.01 real 4.68 user 15.77 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 1101145, close 100560, bind 206172, connect 112481, delroute 0 10.01 real 4.69 user 16.04 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 511685, close 174423, bind 0, connect 398913, delroute 44447 10.04 real 2.61 user 16.09 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 121968 1.01 real 0.08 user 0.83 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 7897 1.01 real 0.01 user 0.93 sys