-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit benchmark iterations using environment variable #10060
Limit benchmark iterations using environment variable #10060
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-22.04 #10060 +/- ##
=============================================
Coverage 10.42% 10.42%
=============================================
Files 119 119
Lines 20607 20607
=============================================
Hits 2148 2148
Misses 18459 18459 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nitpick, looks good otherwise
Following test failed. (twice) |
IIRC, this test is flaky. |
rerun tests |
Also, does this have to go into 22.02? Burn-down started last week. |
@@ -68,6 +70,12 @@ inline auto make_pool() | |||
*/ | |||
class benchmark : public ::benchmark::Fixture { | |||
public: | |||
benchmark() : ::benchmark::Fixture() | |||
{ | |||
const char* env_iterations = std::getenv("CUDF_BENCHMARK_ITERATIONS"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not keen on limiting the number of benchmark iterations for all benchmarks arbitrarily like this. GBench/NVbench run as many iterations as is needed to determine statistical significance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not for actual benchmarking results. This is just to enable benchmark binaries run as part of CI or nightly builds to ensure there is nothing broken in benchmarks.
Co-authored-by: David Wendt <[email protected]>
rerun tests |
Should this be retargeted to 22.04? |
rerun tests |
1 similar comment
rerun tests |
It does not matter if it goes to 22.02 or 22.04. It affects only benchmarks. |
Moving to 22.04 |
rerun tests |
@gpucibot merge |
To address part of #5773
This allows to run benchmarks for only specific iterations using environment variable
CUDF_BENCHMARK_ITERATIONS
.except when benchmark definition itself specifies iteration count.
Also, makes pool as static to allocate pool memory resource only once per binary.