mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-26 12:37:06 +08:00
Added the print stage to the benchmarks (#708)
This commit is contained in:
parent
21fe59dee8
commit
0930142597
@ -27,6 +27,7 @@ static void BencharkBasic(benchmark::State& state) {
|
|||||||
auto root = gauge(1.0);
|
auto root = gauge(1.0);
|
||||||
Screen screen(80, state.range(0));
|
Screen screen(80, state.range(0));
|
||||||
Render(screen, root);
|
Render(screen, root);
|
||||||
|
screen.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BENCHMARK(BencharkBasic)->DenseRange(0, 256, 16);
|
BENCHMARK(BencharkBasic)->DenseRange(0, 256, 16);
|
||||||
@ -40,6 +41,7 @@ static void BencharkText(benchmark::State& state) {
|
|||||||
auto document = paragraph(content);
|
auto document = paragraph(content);
|
||||||
Screen screen(200, 200);
|
Screen screen(200, 200);
|
||||||
Render(screen, document);
|
Render(screen, document);
|
||||||
|
screen.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BENCHMARK(BencharkText)->DenseRange(0, 10, 1);
|
BENCHMARK(BencharkText)->DenseRange(0, 10, 1);
|
||||||
@ -65,6 +67,7 @@ static void BenchmarkStyle(benchmark::State& state) {
|
|||||||
auto document = hbox(std::move(elements));
|
auto document = hbox(std::move(elements));
|
||||||
Screen screen(state.range(1), state.range(1));
|
Screen screen(state.range(1), state.range(1));
|
||||||
Render(screen, document);
|
Render(screen, document);
|
||||||
|
screen.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BENCHMARK(BenchmarkStyle)
|
BENCHMARK(BenchmarkStyle)
|
||||||
|
Loading…
Reference in New Issue
Block a user