Skip to content

Commit

Permalink
docs: updates benchmarks based on current version.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Jun 26, 2024
1 parent c021257 commit be49ee9
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions docs/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ Test configuration:

| Threads | Requests/sec | HTTP Keep-alive |
|---------|--------------|-----------------|
| 50 | 1099 | Disabled |
| 100 | 1330 | Disabled |
| 200 | 1438 | Disabled |
| 200 | 1904 | Enabled |
| 50 | 1075 | Disabled |
| 100 | 1399 | Disabled |
| 200 | 1733 | Disabled |
| 200 | 2712 | Enabled |

### Scenario 2: Conditional, configuration-driven

| Threads | Requests/sec | HTTP Keep-alive |
|---------|--------------|-----------------|
| 50 | 901 | Disabled |
| 100 | 1159 | Disabled |
| 200 | 1416 | Disabled |
| 200 | 1855 | Enabled |
| 50 | 939 | Disabled |
| 100 | 1216 | Disabled |
| 200 | 1619 | Disabled |
| 200 | 2027 | Enabled |

### Scenario 3: Dynamic, script-driven

Expand All @@ -59,7 +59,13 @@ Configuration and commands to allow benchmarks to be independently reproduced.

#### Start command

docker run --rm -it -v /path/to/config:/opt/imposter/config -p 8080:8080 --cpus=1 --memory=256m outofcoffee/imposter:1.23.3
docker run --rm -it \
-v /path/to/config:/opt/imposter/config \
-p 8080:8080 \
-e IMPOSTER_LOG_LEVEL=info \
--cpus=1 \
--memory=256m \
outofcoffee/imposter:3.42.0

Notes:

Expand All @@ -68,7 +74,7 @@ Notes:

#### Warmup command

for i in {1..5}; do ab -t 2 -c 50 http://localhost:8080/example ; sleep 5 ; done
for i in {1..10}; do ab -t 2 -c 50 http://localhost:8080/example ; sleep 5 ; done

Notes:

Expand Down

0 comments on commit be49ee9

Please sign in to comment.