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

Optimize and Refactor Benchmark Code #7170

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NeoByteXx
Copy link

for _ in 0..(NUM_WORKERS) { → for _ in 0..NUM_WORKERS {
Improves readability and follows Rust conventions.

Fix loop condition in Spinner (signal_benchmark.rs)

if self.count > 3 { → if self.count >= 3 {
Ensures correct iteration count.

@maminrayej maminrayej added the A-benches Area: Benchmarks label Feb 24, 2025
@maminrayej
Copy link
Member

if self.count > 3 { → if self.count >= 3 {
Ensures correct iteration count.

I don't understand why the previous iteration count was wrong and what this change fixes. Could you explain the motivation behind this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-benches Area: Benchmarks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants