Make each test a subsection. Refactor update script.
This commit is contained in:
parent
0956ec54ca
commit
7d88de4963
56
README.md
56
README.md
@ -1,66 +1,72 @@
|
|||||||
# Benchmark results
|
# Benchmark results
|
||||||
## Sleep: `wrk -t 16 -d 5 -c 16 http://localhost:3030/sleep/1`
|
## Sleep:
|
||||||
|
### `wrk -t 16 -d 5 -c 16 http://localhost:3030/sleep/1`
|
||||||
|
|
||||||
```
|
```
|
||||||
Running 5s test @ http://localhost:3030/sleep/1
|
Running 5s test @ http://localhost:3030/sleep/1
|
||||||
16 threads and 16 connections
|
16 threads and 16 connections
|
||||||
Thread Stats Avg Stdev Max +/- Stdev
|
Thread Stats Avg Stdev Max +/- Stdev
|
||||||
Latency 1.00s 702.81us 1.00s 58.46%
|
Latency 1.00s 332.22us 1.00s 68.75%
|
||||||
Req/Sec 0.25 0.43 1.00 75.38%
|
Req/Sec 0.50 0.50 1.00 100.00%
|
||||||
65 requests in 5.01s, 8.63KB read
|
64 requests in 5.01s, 8.50KB read
|
||||||
Requests/sec: 12.97
|
Requests/sec: 12.78
|
||||||
Transfer/sec: 1.72KB
|
Transfer/sec: 1.70KB
|
||||||
```
|
```
|
||||||
|
|
||||||
## Sleep: `wrk -t 16 -d 5 -c 32 http://localhost:3030/sleep/1`
|
## Sleep:
|
||||||
|
### `wrk -t 16 -d 5 -c 32 http://localhost:3030/sleep/1`
|
||||||
|
|
||||||
```
|
```
|
||||||
Running 5s test @ http://localhost:3030/sleep/1
|
Running 5s test @ http://localhost:3030/sleep/1
|
||||||
16 threads and 32 connections
|
16 threads and 32 connections
|
||||||
Thread Stats Avg Stdev Max +/- Stdev
|
Thread Stats Avg Stdev Max +/- Stdev
|
||||||
Latency 1.00s 520.18us 1.00s 75.38%
|
Latency 1.00s 519.72us 1.00s 68.75%
|
||||||
Req/Sec 1.89 2.51 10.00 91.67%
|
Req/Sec 2.34 2.92 10.00 87.67%
|
||||||
130 requests in 5.01s, 17.27KB read
|
128 requests in 5.01s, 17.00KB read
|
||||||
Requests/sec: 25.96
|
Requests/sec: 25.57
|
||||||
Transfer/sec: 3.45KB
|
Transfer/sec: 3.40KB
|
||||||
```
|
```
|
||||||
|
|
||||||
## Sleep: `wrk -t 16 -d 5 -c 64 http://localhost:3030/sleep/1`
|
## Sleep:
|
||||||
|
### `wrk -t 16 -d 5 -c 64 http://localhost:3030/sleep/1`
|
||||||
|
|
||||||
```
|
```
|
||||||
Running 5s test @ http://localhost:3030/sleep/1
|
Running 5s test @ http://localhost:3030/sleep/1
|
||||||
16 threads and 64 connections
|
16 threads and 64 connections
|
||||||
Thread Stats Avg Stdev Max +/- Stdev
|
Thread Stats Avg Stdev Max +/- Stdev
|
||||||
Latency 1.00s 1.50ms 1.01s 67.58%
|
Latency 1.00s 1.64ms 1.01s 72.27%
|
||||||
Req/Sec 3.20 0.41 4.00 79.69%
|
Req/Sec 3.52 3.38 30.00 96.92%
|
||||||
256 requests in 5.01s, 34.00KB read
|
256 requests in 5.01s, 34.00KB read
|
||||||
Requests/sec: 51.13
|
Requests/sec: 51.13
|
||||||
Transfer/sec: 6.79KB
|
Transfer/sec: 6.79KB
|
||||||
```
|
```
|
||||||
|
|
||||||
## Sleep: `wrk -t 16 -d 5 -c 128 http://localhost:3030/sleep/1`
|
## Sleep:
|
||||||
|
### `wrk -t 16 -d 5 -c 128 http://localhost:3030/sleep/1`
|
||||||
|
|
||||||
```
|
```
|
||||||
Running 5s test @ http://localhost:3030/sleep/1
|
Running 5s test @ http://localhost:3030/sleep/1
|
||||||
16 threads and 128 connections
|
16 threads and 128 connections
|
||||||
Thread Stats Avg Stdev Max +/- Stdev
|
Thread Stats Avg Stdev Max +/- Stdev
|
||||||
Latency 1.00s 1.25ms 1.01s 66.41%
|
Latency 1.00s 0.96ms 1.01s 70.70%
|
||||||
Req/Sec 8.06 7.86 70.00 96.92%
|
Req/Sec 10.38 15.10 70.00 94.12%
|
||||||
512 requests in 5.01s, 68.00KB read
|
512 requests in 5.01s, 68.00KB read
|
||||||
Requests/sec: 102.24
|
Requests/sec: 102.17
|
||||||
Transfer/sec: 13.58KB
|
Transfer/sec: 13.57KB
|
||||||
```
|
```
|
||||||
|
|
||||||
## Spin: `wrk -t 16 -d 5 -c 16 http://localhost:3030/spin/1`
|
## Spin:
|
||||||
|
### `wrk -t 16 -d 5 -c 16 http://localhost:3030/spin/1`
|
||||||
|
|
||||||
```
|
```
|
||||||
Running 5s test @ http://localhost:3030/spin/1
|
Running 5s test @ http://localhost:3030/spin/1
|
||||||
16 threads and 16 connections
|
16 threads and 16 connections
|
||||||
Thread Stats Avg Stdev Max +/- Stdev
|
Thread Stats Avg Stdev Max +/- Stdev
|
||||||
Latency 1.00s 0.00us 1.00s 100.00%
|
Latency 1.00s 0.00us 1.00s 100.00%
|
||||||
Req/Sec 0.00 0.00 0.00 100.00%
|
Req/Sec 0.20 0.45 1.00 80.00%
|
||||||
5 requests in 5.01s, 760.00B read
|
5 requests in 5.10s, 760.00B read
|
||||||
Socket errors: connect 0, read 0, write 0, timeout 4
|
Socket errors: connect 0, read 0, write 0, timeout 4
|
||||||
Requests/sec: 1.00
|
Requests/sec: 0.98
|
||||||
Transfer/sec: 151.79B
|
Transfer/sec: 149.02B
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
function block_quote() {
|
||||||
|
echo "\`\`\`"
|
||||||
|
$*
|
||||||
|
echo "\`\`\`"
|
||||||
|
}
|
||||||
|
|
||||||
cargo build --release
|
cargo build --release
|
||||||
echo "Running webserver on port :3030"
|
echo "Running webserver on port :3030"
|
||||||
./target/release/warptest &
|
./target/release/warptest &
|
||||||
@ -9,19 +15,22 @@ echo "PID ${PID:?}"
|
|||||||
echo "# Benchmark results" > README.md
|
echo "# Benchmark results" > README.md
|
||||||
for CONNECTIONS in 16 32 64 128; do
|
for CONNECTIONS in 16 32 64 128; do
|
||||||
SLEEP_CMD="wrk -t 16 -d 5 -c ${CONNECTIONS} http://localhost:3030/sleep/1"
|
SLEEP_CMD="wrk -t 16 -d 5 -c ${CONNECTIONS} http://localhost:3030/sleep/1"
|
||||||
echo "## Sleep: \`${SLEEP_CMD:?}\`" >> README.md
|
{
|
||||||
echo "" >> README.md
|
echo "## Sleep:"
|
||||||
echo "\`\`\`" >> README.md
|
echo "### \`${SLEEP_CMD:?}\`"
|
||||||
${SLEEP_CMD:?} >> README.md
|
echo ""
|
||||||
echo "\`\`\`" >> README.md
|
block_quote ${SLEEP_CMD:?}
|
||||||
echo "" >> README.md
|
echo ""
|
||||||
|
} >> README.md
|
||||||
done
|
done
|
||||||
|
|
||||||
SPIN_CMD="wrk -t 16 -d 5 -c 16 http://localhost:3030/spin/1"
|
SPIN_CMD="wrk -t 16 -d 5 -c 16 http://localhost:3030/spin/1"
|
||||||
echo "## Spin: \`${SPIN_CMD:?}\`" >> README.md
|
{
|
||||||
echo "" >> README.md
|
echo "## Spin:"
|
||||||
echo "\`\`\`" >> README.md
|
echo "### \`${SPIN_CMD:?}\`"
|
||||||
${SPIN_CMD:?} >> README.md
|
echo ""
|
||||||
echo "\`\`\`" >> README.md
|
block_quote ${SPIN_CMD:?}
|
||||||
|
echo ""
|
||||||
|
} >> README.md
|
||||||
echo "Killing webserver"
|
echo "Killing webserver"
|
||||||
kill ${PID:?}
|
kill ${PID:?}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user