Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[benchmark] add render benchmarks #9449

Merged
merged 1 commit into from
Jul 7, 2017
Merged

Conversation

ivovandongen
Copy link
Contributor

Adds two render tests to be able to test #8820 (and specifically #9327).

Depends on #9446

@ivovandongen ivovandongen self-assigned this Jul 7, 2017
};

static void prepare(Map& map) {
map.getStyle().loadJSON(util::read_file("benchmark/fixtures/api/query_style.json"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a copy of this style specifically for this test? Or rename it to style.json so we know it is used by 1+ benchmarks.

}
}

static void API_renderStill_recreate_map(::benchmark::State& state) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to suggest another benchmark. One that reuses the map but sets the style to {} before setting the actual style.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivovandongen ivovandongen merged commit ba32831 into master Jul 7, 2017
@ivovandongen ivovandongen deleted the ivd-render-benchmark branch July 7, 2017 15:16
@ivovandongen ivovandongen mentioned this pull request Jul 10, 2017
@kkaefer kkaefer added the Core The cross-platform C++ core, aka mbgl label Jul 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants