Test spain-geology-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
Running 30s test @ http://cdb.localhost.lan:8181/
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 24.66ms 8.89ms 189.64ms 81.88%
Req/Sec 81.70 16.10 121.00 61.49%
Latency Distribution
50% 23.63ms
75% 28.00ms
90% 33.67ms
99% 56.05ms
9847 requests in 30.08s, 8.01MB read
Requests/sec: 327.31
Transfer/sec: 272.71KB
wrk http://cdb.localhost.lan:8181/ --latency -s scripts/simple_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 27.23ms 16.33ms 454.31ms 95.44%
Req/Sec 75.51 17.06 121.00 69.57%
Latency Distribution
50% 24.56ms
75% 30.26ms
90% 37.22ms
99% 61.97ms
9128 requests in 30.05s, 7.41MB read
Requests/sec: 303.75
Transfer/sec: 252.38KB
wrk http://cdb.localhost.lan:8181/ --latency -s scripts/simple_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 178.15ms 291.22ms 1.53s 86.14%
Req/Sec 43.26 29.73 141.00 60.73%
Latency Distribution
50% 41.08ms
75% 160.96ms
90% 636.69ms
99% 1.26s
3480 requests in 30.09s, 5.06MB read
Requests/sec: 115.63
Transfer/sec: 172.30KB
wrk http://cdb.localhost.lan:8181/ --latency -s scripts/simple_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 185.83ms 302.04ms 1.78s 86.32%
Req/Sec 39.84 26.20 140.00 61.35%
Latency Distribution
50% 44.26ms
75% 190.99ms
90% 618.57ms
99% 1.33s
3254 requests in 30.06s, 4.86MB read
Requests/sec: 108.24
Transfer/sec: 165.63KB