Skip to content
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

Adds some array benchmarks to the ones tracked in CI #2067

Merged
merged 3 commits into from
Oct 10, 2024
Merged

Conversation

jneem
Copy link
Member

@jneem jneem commented Oct 10, 2024

This also rewrites the sum benchmark to be (IMO) more idiomatic. It doesn't affect performance much.

@jneem jneem requested a review from yannham October 10, 2024 07:02
Copy link
Contributor

github-actions bot commented Oct 10, 2024

🐰 Bencher Report

Branch2067/merge
Testbedubuntu-latest

⚠️ WARNING: The following Measure does not have a Threshold. Without a Threshold, no Alerts will ever be generated!

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
fibonacci 10📈 view plot
⚠️ NO THRESHOLD
490,850.00
foldl arrays 50📈 view plot
⚠️ NO THRESHOLD
1,847,100.00
foldl arrays 500📈 view plot
⚠️ NO THRESHOLD
23,771,000.00
foldr strings 50📈 view plot
⚠️ NO THRESHOLD
7,122,600.00
foldr strings 500📈 view plot
⚠️ NO THRESHOLD
63,156,000.00
generate normal 250📈 view plot
⚠️ NO THRESHOLD
39,948,000.00
generate normal 50📈 view plot
⚠️ NO THRESHOLD
1,872,600.00
generate normal unchecked 1000📈 view plot
⚠️ NO THRESHOLD
57,917,000.00
generate normal unchecked 200📈 view plot
⚠️ NO THRESHOLD
2,868,200.00
pidigits 100📈 view plot
⚠️ NO THRESHOLD
3,190,900.00
pipe normal 20📈 view plot
⚠️ NO THRESHOLD
1,501,800.00
pipe normal 200📈 view plot
⚠️ NO THRESHOLD
12,208,000.00
product 30📈 view plot
⚠️ NO THRESHOLD
833,660.00
scalar 10📈 view plot
⚠️ NO THRESHOLD
1,532,300.00
sum 30📈 view plot
⚠️ NO THRESHOLD
822,670.00
🐰 View full continuous benchmarking report in Bencher

@@ -32,6 +35,7 @@ fn ncl_random_array(len: usize) -> String {
String::from_utf8(out).unwrap()
}

#[cfg(not(feature = "benchmark-ci"))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the whole ncl_bench_group! is gated behind the feature, is there a reason why we need to disable individual benchmark with a #[cfg(not(...))] as well ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without configuring out those things, CI failed with unused code warnings.

@jneem jneem added this pull request to the merge queue Oct 10, 2024
Merged via the queue into master with commit 983529f Oct 10, 2024
5 checks passed
@jneem jneem deleted the more-ci-benchmarks branch October 10, 2024 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants