1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:47:45 +00:00

LibTest: Add option to run each benchmark several times

This allows to print statistical information (minimum, average, maximum
execution time) about benchmark execution.
This commit is contained in:
Dan Klishch 2023-03-09 01:04:59 +03:00 committed by Andreas Kling
parent e76394d96c
commit b170b46aa5
2 changed files with 31 additions and 6 deletions

View file

@ -50,6 +50,7 @@ private:
u64 m_testtime = 0;
u64 m_benchtime = 0;
DeprecatedString m_suite_name;
u64 m_benchmark_repetitions = 1;
bool m_current_test_case_passed = true;
Function<void()> m_setup;
};