Skip to content

Instantly share code, notes, and snippets.

@dgaubert
Last active February 27, 2017 11:42
Show Gist options
  • Save dgaubert/49e7d36208352bec58fe671ed8f47c7e to your computer and use it in GitHub Desktop.
Save dgaubert/49e7d36208352bec58fe671ed8f47c7e to your computer and use it in GitHub Desktop.

Empty map benchmark

Test an empty map (no data, no style), from zoom 18 to zoom 0 and given a bounding-box it iterates over a predefined bounding-box to request tiles, instead of looping over the whole quad-tree.

30 seconds, 4 threads

Bounding-box: Spain

Node v0.10.26 / Mapnik 2.3.x / no features / empty map / no style

wrk http://cdb.localhost.lan:8181/ --latency -s scripts/simple_map.lua -d 30 -t 4
Layergroup ID = fc02b13f4145e914b1f29876f49b3ee6:1488190788822
Layergroup ID = fc02b13f4145e914b1f29876f49b3ee6:1488190788822
Layergroup ID = fc02b13f4145e914b1f29876f49b3ee6:1488190788822
Layergroup ID = fc02b13f4145e914b1f29876f49b3ee6:1488190788822
Running 30s test @ http://cdb.localhost.lan:8181/
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    20.66ms   10.78ms 103.72ms   87.13%
    Req/Sec    99.40     24.82   170.00     68.47%
  Latency Distribution
     50%   18.30ms
     75%   22.99ms
     90%   30.57ms
     99%   60.27ms
  11985 requests in 30.10s, 8.94MB read
Requests/sec:    398.13
Transfer/sec:    304.21KB

Node v6.9.5 / Mapnik 3.x / no features / empty map / no style

wrk http://cdb.localhost.lan:8181/ --latency -s scripts/simple_map.lua -d 30 -t 4
Layergroup ID = fc02b13f4145e914b1f29876f49b3ee6:1488190788822
Layergroup ID = fc02b13f4145e914b1f29876f49b3ee6:1488190788822
Layergroup ID = fc02b13f4145e914b1f29876f49b3ee6:1488190788822
Layergroup ID = fc02b13f4145e914b1f29876f49b3ee6:1488190788822
Running 30s test @ http://cdb.localhost.lan:8181/
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    19.86ms    7.97ms 204.02ms   81.47%
    Req/Sec   101.68     21.40   160.00     65.78%
  Latency Distribution
     50%   18.96ms
     75%   23.64ms
     90%   27.78ms
     99%   44.13ms
  12270 requests in 30.08s, 9.16MB read
Requests/sec:    407.90
Transfer/sec:    311.88KB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment