Skip to content

Commit

Permalink
chore: Added benchmark results.
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-meier committed Feb 26, 2023
1 parent 8190921 commit 3f44d97
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,27 @@ Simple tile server for `.mbtiles`-files written in C# with minimal APIs.
6. Open the `./test/index.html` to see a leaflet-demo.
7. _[Optional]_ Enter the container with `docker exec -it tile-server-app-1 bash`.

## Stress testing
Install [k6](https://k6.io/docs/get-started/installation/) by Grafana Labs and run the following command: `k6 run test/k6.js`

## Operations

[dotnet-counters](https://learn.microsoft.com/en/dotnet/core/diagnostics/dotnet-counters) and [dotnet-dump](https://learn.microsoft.com/en/dotnet/core/diagnostics/dotnet-dump) are available in the `/tools`-folder of the tile-server. `/tools/dotnet-counters monitor -p 1` can provide a high-level overview of the applications health (CPU usage, GC- and thread pool information,...).

`/tools/dotnet-dump collect -p 1` can be used to create (and also analyze) dumps.

## Stress testing
Install [k6](https://k6.io/docs/get-started/installation/) by Grafana Labs and run the following command: `k6 run test/k6.js`

## Statistics
Statistics from a local [bombardier](https://github.com/codesenberg/bombardier) benchmark:
```
./bombardier https://localhost/5/15/19.png -d 120s --insecure
Statistics Avg Stdev Max
Reqs/sec 36734.64 4022.55 47849.41
Latency 3.40ms 1.08ms 122.90ms
HTTP codes:
1xx - 0, 2xx - 4407445, 3xx - 0, 4xx - 0, 5xx - 0
others - 0
Throughput: 716.23MB/s
```

## Used mbtiles file
https://ftp.gwdg.de/pub/misc/openstreetmap/openandromaps/world/OAM-World-1-8-min-J80.mbtiles

0 comments on commit 3f44d97

Please sign in to comment.