Skip to content

Instantly share code, notes, and snippets.

@dgaubert
Created February 28, 2017 12:24
Show Gist options
  • Save dgaubert/58a5cc470f1c54ec49a0175d0e669056 to your computer and use it in GitHub Desktop.
Save dgaubert/58a5cc470f1c54ec49a0175d0e669056 to your computer and use it in GitHub Desktop.

Labels

Tests label speed rendering.

30 seconds, 4 threads

Points (w/o marker, just labels)

z/x/y tiles:

5/0/0 <- 5/31/31
4/0/0 <- 4/15/15
3/0/0 <- 3/7/7
2/0/0 <- 2/3/3
1/0/0 <- 1/1/1
0/0/0 <- 0/0/0

Node v0.10.26 / Mapnik 2.3.x / points / custom style

wrk http://cdb.localhost.lan:8181/ simple_map_points_labels 0 0 0 5 --latency -s scripts/bounded_box_map.lua -d 30 -t 4
Running 30s test @ http://cdb.localhost.lan:8181/
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    34.27ms   34.61ms 406.24ms   90.44%
    Req/Sec    69.77     38.76   237.00     68.93%
  Latency Distribution
     50%   23.36ms
     75%   40.22ms
     90%   67.36ms
     99%  186.25ms
  8165 requests in 30.09s, 16.50MB read
Requests/sec:    271.38
Transfer/sec:    561.49KB

Node v6.9.5 / Mapnik v3.x / points + lines + polygons / custom style

wrk http://cdb.localhost.lan:8181/ simple_map_points_labels 0 0 0 5 --latency -s scripts/bounded_box_map.lua -d 30 -t 4
Running 30s test @ http://cdb.localhost.lan:8181/
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    55.38ms  102.73ms   1.01s    92.77%
    Req/Sec    69.92     40.74   190.00     63.99%
  Latency Distribution
     50%   24.77ms
     75%   42.68ms
     90%  111.92ms
     99%  574.52ms
  7533 requests in 30.08s, 15.52MB read
Requests/sec:    250.42
Transfer/sec:    528.35KB

Points (w/o marker, just labels, Switzerland)

z/x/y tiles:

11/1056/704 <- 11/1087/735
10/528/352 <- 10/543/367
9/264/176 <- 9/271/183
8/132/88 <- 8/135/91
7/66/44 <- 7/67/45
6/33/22 <- 6/33/22

Node v0.10.26 / Mapnik 2.3.x / points / custom style

wrk http://cdb.localhost.lan:8181/ simple_map_points_labels 6 33 22 11 --latency -s scripts/bounded_box_map.lua -d 30 -t 4
Running 30s test @ http://cdb.localhost.lan:8181/
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    21.90ms   12.67ms 168.23ms   85.53%
    Req/Sec    94.27     31.95   188.00     63.34%
  Latency Distribution
     50%   19.48ms
     75%   25.56ms
     90%   34.69ms
     99%   65.04ms
  11323 requests in 30.09s, 9.22MB read
Requests/sec:    376.30
Transfer/sec:    313.71KB

Node v6.9.5 / Mapnik v3.x / points / custom style

wrk http://cdb.localhost.lan:8181/ simple_map_points_labels 6 33 22 11 --latency -s scripts/bounded_box_map.lua -d 30 -t 4
Running 30s test @ http://cdb.localhost.lan:8181/
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    22.50ms   11.88ms 294.38ms   84.60%
    Req/Sec    90.46     30.18   191.00     60.08%
  Latency Distribution
     50%   21.38ms
     75%   27.60ms
     90%   33.71ms
     99%   54.60ms
  10900 requests in 30.08s, 8.87MB read
Requests/sec:    362.40
Transfer/sec:    302.16KB

Points + Lines + Polygons

z/x/y tiles:

5/0/0 <- 5/31/31
4/0/0 <- 4/15/15
3/0/0 <- 3/7/7
2/0/0 <- 2/3/3
1/0/0 <- 1/1/1
0/0/0 <- 0/0/0

Node v0.10.26 / Mapnik 2.3.x / points + lines + polygons / custom style

wrk http://cdb.localhost.lan:8181/ simple_map_all_labels 0 0 0 5 --latency -s scripts/bounded_box_map.lua -d 30 -t 4
Running 30s test @ http://cdb.localhost.lan:8181/
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    52.39ms   50.06ms 514.98ms   87.41%
    Req/Sec    46.06     36.02   198.00     77.08%
  Latency Distribution
     50%   38.90ms
     75%   71.53ms
     90%  112.30ms
     99%  233.92ms
  5187 requests in 30.05s, 18.97MB read
Requests/sec:    172.60
Transfer/sec:    646.42KB

Node v6.9.5 / Mapnik v3.x / points + lines + polygons / custom style

wrk http://cdb.localhost.lan:8181/ simple_map_all_labels 0 0 0 5 --latency -s scripts/bounded_box_map.lua -d 30 -t 4
Running 30s test @ http://cdb.localhost.lan:8181/
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    56.38ms   58.14ms 707.08ms   88.61%
    Req/Sec    45.87     34.59   260.00     76.34%
  Latency Distribution
     50%   40.04ms
     75%   69.05ms
     90%  122.18ms
     99%  274.69ms
  5058 requests in 30.10s, 18.70MB read
Requests/sec:    168.05
Transfer/sec:    636.17KB

Points + Lines + Polygons (Switzerland)

z/x/y tiles:

11/1056/704 <- 11/1087/735
10/528/352 <- 10/543/367
9/264/176 <- 9/271/183
8/132/88 <- 8/135/91
7/66/44 <- 7/67/45
6/33/22 <- 6/33/22

Node v0.10.26 / Mapnik 2.3.x / points + lines + polygons / custom style

wrk http://cdb.localhost.lan:8181/ simple_map_all_labels 6 33 22 11  --latency -s scripts/bounded_box_map.lua -d 30 -t 4
Running 30s test @ http://cdb.localhost.lan:8181/
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    41.98ms   29.42ms 170.81ms   61.46%
    Req/Sec    48.56     39.06   300.00     85.57%
  Latency Distribution
     50%   41.73ms
     75%   63.40ms
     90%   80.41ms
     99%  116.42ms
  5838 requests in 30.08s, 6.39MB read
Requests/sec:    194.09
Transfer/sec:    217.53KB

Node v6.9.5 / Mapnik v3.x / points + lines + polygons / custom style

wrk http://cdb.localhost.lan:8181/ simple_map_all_labels 6 33 22 11  --latency -s scripts/bounded_box_map.lua -d 30 -t 4
Running 30s test @ http://cdb.localhost.lan:8181/
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    41.59ms   28.79ms 440.60ms   74.16%
    Req/Sec    49.33     33.25   212.00     84.97%
  Latency Distribution
     50%   39.27ms
     75%   59.70ms
     90%   75.75ms
     99%  110.65ms
  5940 requests in 30.10s, 6.47MB read
Requests/sec:    197.35
Transfer/sec:    220.07KB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment