added logging to file

This commit is contained in:
Seth Samuel 2025-01-25 15:07:35 +13:00
parent 09e2f32c60
commit 78763b5b6d
4 changed files with 118 additions and 2 deletions

View file

@ -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 &

57
test Normal file
View file

@ -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

View file

58
testData/2025-01-25-15-06 Normal file
View file

@ -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