Test canada-road-map, from zoom 18 to zoom 0 and given a bounding-box it iterates over a predefined bounding-box to request meaningful tiles (non empty tiles), instead of looping over the whole quad-tree.
wrk http://cdb.localhost.lan:8181/ --latency -s scripts/simple_map.lua -d 30 -t 4
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Running 30s test @ http://cdb.localhost.lan:8181/
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 21.81ms 9.84ms 92.05ms 90.31%
Req/Sec 93.42 19.75 128.00 66.81%
Latency Distribution
50% 19.49ms
75% 22.27ms
90% 29.22ms
99% 61.22ms
11249 requests in 30.10s, 8.91MB read
Requests/sec: 373.69
Transfer/sec: 303.26KB
wrk http://cdb.localhost.lan:8181/ --latency -s scripts/simple_map.lua -d 30 -t 4
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Running 30s test @ http://cdb.localhost.lan:8181/
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 19.08ms 9.31ms 282.12ms 94.59%
Req/Sec 106.87 22.02 151.00 67.11%
Latency Distribution
50% 18.24ms
75% 21.20ms
90% 25.29ms
99% 46.71ms
12873 requests in 30.08s, 10.18MB read
Requests/sec: 427.98
Transfer/sec: 346.43KB
wrk http://cdb.localhost.lan:8181/ --latency -s scripts/simple_map.lua -d 30 -t 4
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Running 30s test @ http://cdb.localhost.lan:8181/
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 22.40ms 10.63ms 110.47ms 85.21%
Req/Sec 91.11 23.58 150.00 67.20%
Latency Distribution
50% 20.20ms
75% 24.30ms
90% 32.36ms
99% 65.46ms
10976 requests in 30.07s, 8.24MB read
Requests/sec: 364.97
Transfer/sec: 280.66KB
wrk http://cdb.localhost.lan:8181/ --latency -s scripts/simple_map.lua -d 30 -t 4
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Layergroup ID = 8bc75e53889809dfe2e8982091a17614:1488196073189
Running 30s test @ http://cdb.localhost.lan:8181/
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 21.41ms 8.90ms 271.37ms 94.29%
Req/Sec 95.00 17.99 131.00 77.55%
Latency Distribution
50% 20.01ms
75% 22.67ms
90% 26.71ms
99% 51.66ms
11415 requests in 30.08s, 8.58MB read
Requests/sec: 379.54
Transfer/sec: 291.97KB
z/x/y tiles:
14/2976/5472 <- 14/3007/5503
13/1488/2736 <- 13/1503/2751
12/744/1368 <- 12/751/1375
11/372/684 <- 11/375/687
10/186/342 <- 10/187/343
9/93/171 <- 9/93/171
wrk http://cdb.localhost.lan:8181/ canada_road_map 9 93 171 14 --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 50.29ms 51.27ms 718.65ms 92.33%
Req/Sec 47.17 27.98 180.00 63.86%
Latency Distribution
50% 40.02ms
75% 57.95ms
90% 90.30ms
99% 266.04ms
5436 requests in 30.07s, 27.22MB read
Requests/sec: 180.79
Transfer/sec: 0.91MB
wrk http://cdb.localhost.lan:8181/ canada_road_map 9 93 171 14 --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 49.17ms 44.50ms 676.99ms 92.98%
Req/Sec 45.53 26.67 188.00 80.61%
Latency Distribution
50% 44.39ms
75% 59.68ms
90% 80.94ms
99% 225.23ms
5339 requests in 30.10s, 26.49MB read
Requests/sec: 177.38
Transfer/sec: 0.88MB