==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || doas -n sysctl kern.maxfiles=110000 kern.maxfiles: 7030 -> 110000 ==== run-default ==== cc -O2 -pipe -g -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 1213552, close 724837, bind 275537, connect 252531, delroute 0 10.01 real 5.60 user 20.02 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1452923, close 340550, bind 1195650, connect 0, delroute 0 10.00 real 4.69 user 21.70 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 989949, close 349836, bind 0, connect 799975, delroute 0 10.01 real 2.83 user 18.11 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1261307, close 370447, bind 378299, connect 344520, delroute 0 10.01 real 3.72 user 18.63 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 510403, close 234101, bind 136524, connect 107306, delroute 0 10.56 real 1.26 user 21.21 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1136124, close 480683, bind 334985, connect 325266, delroute 0 10.01 real 3.21 user 17.19 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 1158903, close 214654, bind 76227, connect 471754, delroute 0 10.06 real 3.03 user 16.99 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 1289524, close 219637, bind 388118, connect 248473, delroute 0 10.02 real 3.09 user 17.02 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 1099039, close 180137, bind 0, connect 409283, delroute 171186 10.00 real 3.78 user 16.90 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 930487, close 220470, bind 1452542, connect 0, delroute 0 10.01 real 3.34 user 16.26 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 720843, close 262725, bind 0, connect 1636157, delroute 0 10.01 real 4.03 user 13.80 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 780117, close 290959, bind 868719, connect 792542, delroute 0 10.01 real 3.47 user 14.44 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 157269, close 58109, bind 149196, connect 77303, delroute 0 10.79 real 0.86 user 10.92 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 651037, close 264269, bind 843525, connect 548911, delroute 0 10.01 real 3.69 user 13.28 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 671509, close 116192, bind 124211, connect 445988, delroute 0 10.09 real 3.24 user 13.84 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 697520, close 157377, bind 539378, connect 286845, delroute 0 10.03 real 3.72 user 13.87 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 635915, close 109257, bind 0, connect 253979, delroute 91507 10.01 real 3.47 user 14.25 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 1326853, close 538986, bind 941652, connect 0, delroute 0 10.04 real 3.34 user 17.47 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 1397937, close 695449, bind 0, connect 580015, delroute 0 10.00 real 2.96 user 18.52 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 1430187, close 358638, bind 325190, connect 343428, delroute 0 10.01 real 3.44 user 20.15 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 1172292, close 195341, bind 382532, connect 372295, delroute 0 10.60 real 3.57 user 18.01 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 1157343, close 479837, bind 526947, connect 421571, delroute 0 10.03 real 4.07 user 16.87 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 1303369, close 295233, bind 98684, connect 696281, delroute 0 10.01 real 3.82 user 17.71 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 1378285, close 362313, bind 386802, connect 422100, delroute 0 10.01 real 3.99 user 18.87 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 1187988, close 198586, bind 0, connect 608235, delroute 215968 10.01 real 3.85 user 17.61 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1391611, close 280290, bind 715302, connect 0, delroute 0 10.03 real 3.40 user 18.11 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 962528, close 235222, bind 0, connect 493713, delroute 0 10.05 real 2.93 user 14.06 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1027808, close 502646, bind 443854, connect 365972, delroute 0 10.02 real 3.86 user 12.86 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 322079, close 120086, bind 104793, connect 71672, delroute 0 10.64 real 0.88 user 20.85 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1162439, close 373581, bind 428913, connect 200408, delroute 0 10.01 real 3.07 user 14.19 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 1061042, close 300506, bind 118078, connect 483909, delroute 0 0m10.01s real 0m03.40s user 0m15.01s 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 1165437, close 440966, bind 520976, connect 243621, delroute 0 0m10.01s real 0m03.27s user 0m14.85s 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 666871, close 726899, bind 0, connect 274250, delroute 33262 10.00 real 1.96 user 14.69 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 814051, close 328744, bind 2070877, connect 0, delroute 0 10.03 real 3.93 user 16.75 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 653097, close 182372, bind 0, connect 1552000, delroute 0 10.03 real 4.07 user 12.49 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 667677, close 227747, bind 1035781, connect 723559, delroute 0 10.01 real 3.64 user 13.07 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 128986, close 35748, bind 117188, connect 61712, delroute 0 10.64 real 0.81 user 10.33 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 610565, close 210150, bind 647664, connect 353136, delroute 0 10.01 real 2.89 user 14.18 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 579152, close 210259, bind 179523, connect 970909, delroute 0 0m10.02s real 0m03.10s user 0m13.43s 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 660674, close 345753, bind 959134, connect 650113, delroute 0 0m10.03s real 0m03.42s user 0m13.61s 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 235114, close 171118, bind 0, connect 824980, delroute 27961 10.01 real 2.30 user 13.73 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 1082880, close 227116, bind 822650, connect 0, delroute 0 10.01 real 2.99 user 15.87 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 1012072, close 177722, bind 0, connect 694023, delroute 0 10.02 real 3.05 user 16.72 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 1132304, close 126799, bind 330048, connect 385773, delroute 0 10.02 real 3.01 user 18.25 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 981119, close 111802, bind 401295, connect 245253, delroute 0 10.69 real 2.63 user 16.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 955345, close 358296, bind 421459, connect 437145, delroute 0 10.01 real 3.43 user 16.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 952002, close 200807, bind 73584, connect 645682, delroute 0 10.01 real 2.94 user 16.16 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 980504, close 196893, bind 432699, connect 339836, delroute 0 10.02 real 3.09 user 16.55 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 356014, close 445710, bind 0, connect 564292, delroute 46675 10.01 real 2.10 user 13.51 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 127464 1.02 real 0.18 user 0.79 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 7688 1.01 real 0.01 user 0.90 sys