Skip to content

Commit 50d9756

Browse files
migrate benchmarks to Mapterhorn and OFM (maplibre#7475)
1 parent 6e22a02 commit 50d9756

9 files changed

Lines changed: 11 additions & 11 deletions

File tree

test/bench/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To run all benchmarks, open [the benchmark page, `http://localhost:9966/test/ben
2929

3030
To run a specific benchmark, add its name to the url hash, for example [`http://localhost:9966/test/bench/styles/index.html#Layout`](http://localhost:9966/test/bench/styles/index.html#Layout).
3131

32-
By default, the style benchmark page will run its benchmarks against `https://api.maptiler.com/maps/streets/style.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL`. `Layout` and `Paint` styles will run one instance of the test for each tile/location in an internal list of tiles. This behavior helps visualize the ways in which a style performs given various conditions present in each tile (CJK text, dense urban areas, rural areas, etc). `QueryBox` and `QueryPoint` use the internal list of tiles but otherwise run the same as their non-style benchmark equivalents. `StyleLayerCreate` and `StyleValidate` are not tile/location dependent and run the same way as their non-style benchmark equivalents. All other benchmark tests from the non-style suite are not used when benchmarking styles.
32+
By default, the style benchmark page will run its benchmarks against `https://tiles.openfreemap.org/styles/liberty`. `Layout` and `Paint` styles will run one instance of the test for each tile/location in an internal list of tiles. This behavior helps visualize the ways in which a style performs given various conditions present in each tile (CJK text, dense urban areas, rural areas, etc). `QueryBox` and `QueryPoint` use the internal list of tiles but otherwise run the same as their non-style benchmark equivalents. `StyleLayerCreate` and `StyleValidate` are not tile/location dependent and run the same way as their non-style benchmark equivalents. All other benchmark tests from the non-style suite are not used when benchmarking styles.
3333

3434
## Generating gl statistics
3535

test/bench/benchmarks/color_relief_load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class ColorReliefLoad extends Benchmark {
2525
'pitch': 0,
2626
'sources': {
2727
'terrain-rgb': {
28-
'url': 'https://api.maptiler.com/tiles/terrain-rgb/tiles.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL',
28+
'url': 'https://tiles.mapterhorn.com/tilejson.json',
2929
'type': 'raster-dem',
3030
'tileSize': 256
3131
}

test/bench/benchmarks/hillshade_load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class HillshadeLoad extends Benchmark {
2525
'pitch': 0,
2626
'sources': {
2727
'terrain-rgb': {
28-
'url': 'https://api.maptiler.com/tiles/terrain-rgb/tiles.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL',
28+
'url': 'https://tiles.mapterhorn.com/tilejson.json',
2929
'type': 'raster-dem',
3030
'tileSize': 256
3131
}

test/bench/benchmarks/layers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class LayerHillshade extends LayerBenchmark {
157157
sources: {
158158
'terrain-rgb': {
159159
'type': 'raster-dem',
160-
'url': 'https://api.maptiler.com/tiles/terrain-rgb/tiles.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL'
160+
'url': 'https://tiles.mapterhorn.com/tilejson.json'
161161
}
162162
},
163163
layers: generateLayers({
@@ -177,7 +177,7 @@ export class LayerColorRelief2Colors extends LayerBenchmark {
177177
sources: {
178178
'terrain-rgb': {
179179
'type': 'raster-dem',
180-
'url': 'https://api.maptiler.com/tiles/terrain-rgb/tiles.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL'
180+
'url': 'https://tiles.mapterhorn.com/tilejson.json'
181181
}
182182
},
183183
layers: generateLayers({
@@ -212,7 +212,7 @@ export class LayerColorRelief256Colors extends LayerBenchmark {
212212
sources: {
213213
'terrain-rgb': {
214214
'type': 'raster-dem',
215-
'url': 'https://api.maptiler.com/tiles/terrain-rgb/tiles.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL'
215+
'url': 'https://tiles.mapterhorn.com/tilejson.json'
216216
}
217217
},
218218
layers: generateLayers({

test/bench/benchmarks/terrain_render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class TerrainRender extends Benchmark {
1919
sources: {
2020
'terrain-rgb': {
2121
'type': 'raster-dem',
22-
'url': 'https://api.maptiler.com/tiles/terrain-rgb/tiles.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL'
22+
'url': 'https://tiles.mapterhorn.com/tilejson.json'
2323
}
2424
},
2525
terrain: {

test/bench/gl-stats.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
const map = new maplibregl.Map({
2121
container: document.getElementById('map'),
22-
style: 'https://api.maptiler.com/maps/streets/style.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL',
22+
style: 'https://tiles.openfreemap.org/styles/liberty',
2323
center: [-77.07842066675323, 38.890315130853566],
2424
zoom: 11
2525
});

test/bench/lib/create_map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const createMap = (options: any): Promise<Map> => {
2020

2121
const map = new Map(Object.assign({
2222
container,
23-
style: 'https://api.maptiler.com/maps/streets/style.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL'
23+
style: 'https://tiles.openfreemap.org/styles/liberty'
2424
}, options));
2525

2626
map.on(options.idle ? 'idle' : 'load', () => {

test/bench/rollup_config_benchmarks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {type RollupOptions} from 'rollup';
1313
* The thing to note here is that the index.ts file of the benchmarks needs to export the same thing the original index.ts file is exporting.
1414
*/
1515

16-
let styles = ['https://api.maptiler.com/maps/streets/style.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL'];
16+
let styles = ['https://tiles.openfreemap.org/styles/liberty'];
1717

1818
const loadStyle = (styleURL: string): string => {
1919
if (styleURL.match(/^(?!.*http).*\.json$/)) {

test/bench/versions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function register(name, bench) {
4242
(window as any).maplibreglBenchmarks[name][version] = bench;
4343
}
4444

45-
const style = 'https://api.maptiler.com/maps/streets/style.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL';
45+
const style = 'https://tiles.openfreemap.org/styles/liberty';
4646
const center = [-77.032194, 38.912753];
4747
const zooms = [4, 8, 11, 13, 15, 17];
4848
const locations = zooms.map(zoom => ({center, zoom}));

0 commit comments

Comments
 (0)