From 78763b5b6d932cf1f2aeece6684ec2300f57d0c3 Mon Sep 17 00:00:00 2001 From: Seth Date: Sat, 25 Jan 2025 15:07:35 +1300 Subject: [PATCH] added logging to file --- benchmark | 5 ++-- test | 57 ++++++++++++++++++++++++++++++++++++++ testData/2025-01-25-15-05 | 0 testData/2025-01-25-15-06 | 58 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 test create mode 100644 testData/2025-01-25-15-05 create mode 100644 testData/2025-01-25-15-06 diff --git a/benchmark b/benchmark index bc0d9ef..74f459f 100755 --- a/benchmark +++ b/benchmark @@ -4,13 +4,14 @@ testUrl=test.fluffyb.net tcpConnections=50 testLength=15s threads=1 -proto=("http://", "https://") +proto=("http://" "https://") +dataStore=$(pwd)/testData/$(date +%F-%H-%M) for pr in ${proto[@]}; do for i in `seq 1 $(($(getconf _NPROCESSORS_ONLN)))`; do - docker run --rm git.sethsamuel.online/fluffy/wrk -t $i -c $tcpConnections -d $testLength --latency $pr$testUrl/1kb.file + docker run --rm git.sethsamuel.online/fluffy/wrk -t $i -c $tcpConnections -d $testLength --latency $pr$testUrl/1kb.file >> $dataStore done done #taskset -c $i wrk -t $threads -c $tcpConnections -d $testLength $testUrl/1kb.file & diff --git a/test b/test new file mode 100644 index 0000000..6871148 --- /dev/null +++ b/test @@ -0,0 +1,57 @@ +Running 15s test @ http://test.fluffyb.net/1kb.file + 1 threads and 50 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 139.31ms 17.98ms 502.19ms 99.35% + Req/Sec 360.19 104.02 505.00 68.71% + Latency Distribution + 50% 137.96ms + 75% 138.30ms + 90% 138.70ms + 99% 150.93ms + 5336 requests in 15.02s, 1.50MB read + Non-2xx or 3xx responses: 5336 +Requests/sec: 355.19 +Transfer/sec: 101.98KB +Running 15s test @ http://test.fluffyb.net/1kb.file + 2 threads and 50 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 138.91ms 16.27ms 509.21ms 99.55% + Req/Sec 181.68 62.02 252.00 60.42% + Latency Distribution + 50% 137.90ms + 75% 138.29ms + 90% 138.61ms + 99% 140.59ms + 5350 requests in 15.02s, 1.50MB read + Non-2xx or 3xx responses: 5350 +Requests/sec: 356.22 +Transfer/sec: 102.27KB +Running 15s test @ https://test.fluffyb.net/1kb.file + 1 threads and 50 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 583.05ms 205.43ms 1.64s 71.86% + Req/Sec 90.85 42.69 191.00 67.65% + Latency Distribution + 50% 513.25ms + 75% 698.03ms + 90% 888.93ms + 99% 1.17s + 1249 requests in 15.04s, 4.73MB read + Non-2xx or 3xx responses: 1249 +Requests/sec: 83.07 +Transfer/sec: 321.81KB +Running 15s test @ https://test.fluffyb.net/1kb.file + 2 threads and 50 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 620.40ms 276.58ms 1.53s 68.98% + Req/Sec 32.74 21.50 111.00 61.89% + Latency Distribution + 50% 545.96ms + 75% 795.07ms + 90% 1.05s + 99% 1.32s + 872 requests in 15.03s, 3.30MB read + Socket errors: connect 0, read 0, write 0, timeout 37 + Non-2xx or 3xx responses: 872 +Requests/sec: 58.00 +Transfer/sec: 224.71KB diff --git a/testData/2025-01-25-15-05 b/testData/2025-01-25-15-05 new file mode 100644 index 0000000..e69de29 diff --git a/testData/2025-01-25-15-06 b/testData/2025-01-25-15-06 new file mode 100644 index 0000000..20e9faf --- /dev/null +++ b/testData/2025-01-25-15-06 @@ -0,0 +1,58 @@ +Running 15s test @ http://test.fluffyb.net/1kb.file + 1 threads and 50 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 138.03ms 653.34us 143.46ms 81.34% + Req/Sec 363.79 120.51 505.00 59.31% + Latency Distribution + 50% 137.94ms + 75% 138.34ms + 90% 138.70ms + 99% 140.81ms + 5363 requests in 15.02s, 1.50MB read + Non-2xx or 3xx responses: 5363 +Requests/sec: 357.17 +Transfer/sec: 102.55KB +Running 15s test @ http://test.fluffyb.net/1kb.file + 2 threads and 50 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 139.28ms 17.42ms 507.28ms 99.31% + Req/Sec 179.57 49.63 252.00 67.23% + Latency Distribution + 50% 138.02ms + 75% 138.44ms + 90% 138.89ms + 99% 148.52ms + 5327 requests in 15.01s, 1.49MB read + Non-2xx or 3xx responses: 5327 +Requests/sec: 354.87 +Transfer/sec: 101.89KB +Running 15s test @ https://test.fluffyb.net/1kb.file + 1 threads and 50 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 596.51ms 199.22ms 1.50s 75.60% + Req/Sec 87.33 43.79 202.00 66.42% + Latency Distribution + 50% 520.56ms + 75% 688.64ms + 90% 913.86ms + 99% 1.20s + 1211 requests in 15.02s, 4.58MB read + Socket errors: connect 0, read 0, write 0, timeout 1 + Non-2xx or 3xx responses: 1211 +Requests/sec: 80.61 +Transfer/sec: 312.30KB +Running 15s test @ https://test.fluffyb.net/1kb.file + 2 threads and 50 connections + Thread Stats Avg Stdev Max +/- Stdev + Latency 725.97ms 278.97ms 1.89s 65.05% + Req/Sec 35.65 23.60 160.00 59.61% + Latency Distribution + 50% 719.36ms + 75% 924.10ms + 90% 1.14s + 99% 1.43s + 961 requests in 15.03s, 3.63MB read + Socket errors: connect 0, read 0, write 0, timeout 15 + Non-2xx or 3xx responses: 961 +Requests/sec: 63.92 +Transfer/sec: 247.40KB