openmaptiles/BENCHMARKING.md

18 wiersze
995 B
Markdown
Czysty Zwykły widok Historia

2019-02-06 23:17:40 +00:00
## To determine whether any changes are a notable loss in performance:
2016-12-31 15:00:49 +00:00
1. Start with the old approach
2. Use a fresh database
3. Use a large extract, such as France, Germany, Britain, etc. Too small of PBFs may be entirely cached in RAM and not representative of planet performance
4. Time the extract, ensuring you have the desired zoom level as set in .env
5. Switch to the new approach and use a fresh database once again
6. Quickstart.log will have all the time logs.
7. If necessary, run an update as well to see if your approach can keep up with live updates on the chosen interval. Currently, weekly updates are the target.
2019-02-06 23:17:40 +00:00
## To determine whether your changes in SQL are lossless:
2016-12-31 15:00:49 +00:00
It is recommended to use the "sqldiff" tool to compare mbtiles.
`sqldiff --table tiles new.mbtiles old.mbtiles`
This will compare on just the tiles table, ensuring for each zoom, x, y that the tile data is the same between both mbtiles. If sqldiff returns nothing, it means the results are identical.