Skip to content

Commit

Permalink
make sure the correct style is used (#7277)
Browse files Browse the repository at this point in the history
  • Loading branch information
mollymerp authored Sep 13, 2018
1 parent f66cead commit 82bf025
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bench/styles/benchmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ function register(Benchmark, locations, options) {
if (options) Object.assign(benchmark, options);

urls.forEach(style => {
benchmark.bench = new Benchmark(style, locations);
benchmark.versions.push({
name: style,
name: style.replace("mapbox://styles/", ""),
bench: new Benchmark(style, locations),
status: 'waiting',
logs: [],
samples: [],
Expand Down Expand Up @@ -61,14 +61,13 @@ promise = promise.then(() => {
// URL has been set up, which happens after this module is executed.
getWorkerPool().acquire(-1);
});

benchmarks.forEach(bench => {
bench.versions.forEach(version => {
promise = promise.then(() => {
version.status = 'running';
updateUI(benchmarks);

return bench.bench.run()
return version.bench.run()
.then(measurements => {
// scale measurements down by iteration count, so that
// they represent (average) time for a single iteration
Expand Down

0 comments on commit 82bf025

Please sign in to comment.