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

Add --bench and --warmup flags #261

Merged
merged 5 commits into from
Jan 8, 2024
Merged

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Jan 6, 2024

I often use WARMUP_ITRS=2 MIN_BENCH_ITRS=3 MIN_BENCH_TIME=0 for quick speedup check. But it's hard to remember and I always use my shell history to pull it up.

This PR proposes to allow specifying it with --warmup=2 --bench=3.

run_benchmarks.rb Outdated Show resolved Hide resolved
run_benchmarks.rb Show resolved Hide resolved
run_benchmarks.rb Outdated Show resolved Hide resolved
run_benchmarks.rb Outdated Show resolved Hide resolved
@maximecb
Copy link
Contributor

maximecb commented Jan 8, 2024

I've thought about this too. How about a --quick flag as well?

@k0kubun
Copy link
Member Author

k0kubun commented Jan 8, 2024

How about a --quick flag as well?

How about calling it --once eebd59a (since we use the word "once" in run_once.sh as well)?

@maximecb maximecb merged commit 5c87743 into Shopify:main Jan 8, 2024
3 of 4 checks passed
@k0kubun k0kubun deleted the bench-flags branch January 8, 2024 21:35
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.

4 participants