diff --git a/bench/benchmarks/layers.js b/bench/benchmarks/layers.js index e56c5f0d2fb..a251a07a40a 100644 --- a/bench/benchmarks/layers.js +++ b/bench/benchmarks/layers.js @@ -220,3 +220,22 @@ export class LayerSymbol extends LayerBenchmark { }); } } + +export class LayerSymbolWithIcons extends LayerBenchmark { + constructor() { + super(); + + this.layerStyle = Object.assign({}, style, { + layers: generateLayers({ + 'id': 'symbollayer', + 'type': 'symbol', + 'source': 'composite', + 'source-layer': 'poi_label', + 'layout': { + 'icon-image': 'dot-11', + 'text-field': ['format', ['get', 'name_en'], ['image', 'dot-11']] + } + }) + }); + } +} diff --git a/bench/versions/benchmarks.js b/bench/versions/benchmarks.js index e5d103a9d4a..73a3f20e859 100644 --- a/bench/versions/benchmarks.js +++ b/bench/versions/benchmarks.js @@ -9,7 +9,7 @@ import WorkerTransfer from '../benchmarks/worker_transfer'; import Paint from '../benchmarks/paint'; import PaintStates from '../benchmarks/paint_states'; import {PropertyLevelRemove, FeatureLevelRemove, SourceLevelRemove} from '../benchmarks/remove_paint_state'; -import {LayerBackground, LayerCircle, LayerFill, LayerFillExtrusion, LayerHeatmap, LayerHillshade, LayerLine, LayerRaster, LayerSymbol} from '../benchmarks/layers'; +import {LayerBackground, LayerCircle, LayerFill, LayerFillExtrusion, LayerHeatmap, LayerHillshade, LayerLine, LayerRaster, LayerSymbol, LayerSymbolWithIcons} from '../benchmarks/layers'; import Load from '../benchmarks/map_load'; import Validate from '../benchmarks/style_validate'; import StyleLayerCreate from '../benchmarks/style_layer_create'; @@ -63,6 +63,7 @@ register('LayerHillshade', new LayerHillshade()); register('LayerLine', new LayerLine()); register('LayerRaster', new LayerRaster()); register('LayerSymbol', new LayerSymbol()); +register('LayerSymbolWithIcons', new LayerSymbolWithIcons()); register('Load', new Load()); register('LayoutDDS', new LayoutDDS()); register('SymbolLayout', new SymbolLayout(style, styleLocations.map(location => location.tileID[0])));