Tests label speed rendering.
z/x/y tiles:
<!DOCTYPE html> | |
<html> | |
<body> | |
<img id="200-body-tile" src="http://localhost:3000/200-body-tile" width="256" height="256"> | |
<img id="429-body-tile" src="http://localhost:3000/429-body-tile" width="256" height="256"> | |
<img id="200-body-no-renderable" src="http://localhost:3000/200-body-no-renderable" width="256" height="256"> | |
<img id="429-body-no-renderable" src="http://localhost:3000/429-body-no-renderable" width="256" height="256"> | |
<script type="text/javascript"> | |
document.getElementById("200-body-tile").addEventListener('load', function () { | |
console.log('200-body-tile: load') |
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.
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.
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.
Test pluto-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 300 -t 1 -c 20
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 31.88ms 38.40ms 443.93ms 93.26%
Check index.html for some examples. These use a beta feature of CartoDB's Maps API: fixed URLs. So there is no need to use cartodb.js and tiles can be consumed using a named map name.
Check cartodb.js.html to see the integration with cartodb.js and in particular with cartodb.core.js.