Skip to content

Commit

Permalink
Added the print stage to the benchmarks (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-roblot authored Jul 29, 2023
1 parent 21fe59d commit 0930142
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ftxui/dom/benchmark_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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)
Expand Down

0 comments on commit 0930142

Please sign in to comment.