Skip to content
Snippets Groups Projects
Unverified Commit 09301425 authored by Clément Roblot's avatar Clément Roblot Committed by GitHub
Browse files

Added the print stage to the benchmarks (#708)

parent 21fe59de
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ static void BencharkBasic(benchmark::State& state) {
auto root = gauge(1.0);
Screen screen(80, state.range(0));
Render(screen, root);
screen.ToString();
}
}
BENCHMARK(BencharkBasic)->DenseRange(0, 256, 16);
......@@ -40,6 +41,7 @@ static void BencharkText(benchmark::State& state) {
auto document = paragraph(content);
Screen screen(200, 200);
Render(screen, document);
screen.ToString();
}
}
BENCHMARK(BencharkText)->DenseRange(0, 10, 1);
......@@ -65,6 +67,7 @@ static void BenchmarkStyle(benchmark::State& state) {
auto document = hbox(std::move(elements));
Screen screen(state.range(1), state.range(1));
Render(screen, document);
screen.ToString();
}
}
BENCHMARK(BenchmarkStyle)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment