More benchmarks.
This commit is contained in:
parent
716e6e806e
commit
0956ec54ca
67
README.md
67
README.md
@ -1,27 +1,66 @@
|
||||
# Benchmark results
|
||||
## Sleep: `wrk -t 16 -c 32 http://localhost:3030/sleep/1`
|
||||
## Sleep: `wrk -t 16 -d 5 -c 16 http://localhost:3030/sleep/1`
|
||||
|
||||
```
|
||||
Running 10s test @ http://localhost:3030/sleep/1
|
||||
Running 5s test @ http://localhost:3030/sleep/1
|
||||
16 threads and 16 connections
|
||||
Thread Stats Avg Stdev Max +/- Stdev
|
||||
Latency 1.00s 702.81us 1.00s 58.46%
|
||||
Req/Sec 0.25 0.43 1.00 75.38%
|
||||
65 requests in 5.01s, 8.63KB read
|
||||
Requests/sec: 12.97
|
||||
Transfer/sec: 1.72KB
|
||||
```
|
||||
|
||||
## Sleep: `wrk -t 16 -d 5 -c 32 http://localhost:3030/sleep/1`
|
||||
|
||||
```
|
||||
Running 5s test @ http://localhost:3030/sleep/1
|
||||
16 threads and 32 connections
|
||||
Thread Stats Avg Stdev Max +/- Stdev
|
||||
Latency 1.00s 694.99us 1.00s 68.40%
|
||||
Req/Sec 1.19 0.39 2.00 81.25%
|
||||
288 requests in 10.01s, 38.25KB read
|
||||
Requests/sec: 28.76
|
||||
Transfer/sec: 3.82KB
|
||||
Latency 1.00s 520.18us 1.00s 75.38%
|
||||
Req/Sec 1.89 2.51 10.00 91.67%
|
||||
130 requests in 5.01s, 17.27KB read
|
||||
Requests/sec: 25.96
|
||||
Transfer/sec: 3.45KB
|
||||
```
|
||||
|
||||
## Spin: `wrk -t 16 -c 32 http://localhost:3030/spin/1`
|
||||
## Sleep: `wrk -t 16 -d 5 -c 64 http://localhost:3030/sleep/1`
|
||||
|
||||
```
|
||||
Running 10s test @ http://localhost:3030/spin/1
|
||||
16 threads and 32 connections
|
||||
Running 5s test @ http://localhost:3030/sleep/1
|
||||
16 threads and 64 connections
|
||||
Thread Stats Avg Stdev Max +/- Stdev
|
||||
Latency 1.00s 1.50ms 1.01s 67.58%
|
||||
Req/Sec 3.20 0.41 4.00 79.69%
|
||||
256 requests in 5.01s, 34.00KB read
|
||||
Requests/sec: 51.13
|
||||
Transfer/sec: 6.79KB
|
||||
```
|
||||
|
||||
## Sleep: `wrk -t 16 -d 5 -c 128 http://localhost:3030/sleep/1`
|
||||
|
||||
```
|
||||
Running 5s test @ http://localhost:3030/sleep/1
|
||||
16 threads and 128 connections
|
||||
Thread Stats Avg Stdev Max +/- Stdev
|
||||
Latency 1.00s 1.25ms 1.01s 66.41%
|
||||
Req/Sec 8.06 7.86 70.00 96.92%
|
||||
512 requests in 5.01s, 68.00KB read
|
||||
Requests/sec: 102.24
|
||||
Transfer/sec: 13.58KB
|
||||
```
|
||||
|
||||
## Spin: `wrk -t 16 -d 5 -c 16 http://localhost:3030/spin/1`
|
||||
|
||||
```
|
||||
Running 5s test @ http://localhost:3030/spin/1
|
||||
16 threads and 16 connections
|
||||
Thread Stats Avg Stdev Max +/- Stdev
|
||||
Latency 1.00s 0.00us 1.00s 100.00%
|
||||
Req/Sec 0.10 0.32 1.00 90.00%
|
||||
10 requests in 10.01s, 1.48KB read
|
||||
Socket errors: connect 0, read 0, write 0, timeout 9
|
||||
Req/Sec 0.00 0.00 0.00 100.00%
|
||||
5 requests in 5.01s, 760.00B read
|
||||
Socket errors: connect 0, read 0, write 0, timeout 4
|
||||
Requests/sec: 1.00
|
||||
Transfer/sec: 151.80B
|
||||
Transfer/sec: 151.79B
|
||||
```
|
||||
|
||||
@ -1,20 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SLEEP_CMD="wrk -t 16 -c 32 http://localhost:3030/sleep/1"
|
||||
SPIN_CMD="wrk -t 16 -c 32 http://localhost:3030/spin/1"
|
||||
cargo build --release
|
||||
echo "Running webserver on port :3030"
|
||||
./target/release/warptest &
|
||||
PID=$!
|
||||
echo "PID ${PID:?}"
|
||||
|
||||
echo "# Benchmark results" > README.md
|
||||
echo "## Sleep: \`${SLEEP_CMD}\`" >> README.md
|
||||
for CONNECTIONS in 16 32 64 128; do
|
||||
SLEEP_CMD="wrk -t 16 -d 5 -c ${CONNECTIONS} http://localhost:3030/sleep/1"
|
||||
echo "## Sleep: \`${SLEEP_CMD:?}\`" >> README.md
|
||||
echo "" >> README.md
|
||||
echo "\`\`\`" >> README.md
|
||||
${SLEEP_CMD:?} >> README.md
|
||||
echo "\`\`\`" >> README.md
|
||||
echo "" >> README.md
|
||||
echo "## Spin: \`${SPIN_CMD}\`" >> README.md
|
||||
done
|
||||
|
||||
SPIN_CMD="wrk -t 16 -d 5 -c 16 http://localhost:3030/spin/1"
|
||||
echo "## Spin: \`${SPIN_CMD:?}\`" >> README.md
|
||||
echo "" >> README.md
|
||||
echo "\`\`\`" >> README.md
|
||||
${SPIN_CMD:?} >> README.md
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user