From 093014259706bdacfa8a1760de76077001d5d4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Roblot?= Date: Sat, 29 Jul 2023 16:04:24 +0700 Subject: [PATCH] Added the print stage to the benchmarks (#708) --- src/ftxui/dom/benchmark_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ftxui/dom/benchmark_test.cpp b/src/ftxui/dom/benchmark_test.cpp index 535dde6ad..fea4cd70a 100644 --- a/src/ftxui/dom/benchmark_test.cpp +++ b/src/ftxui/dom/benchmark_test.cpp @@ -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)