-
Notifications
You must be signed in to change notification settings - Fork 156
feat(rdb): add benchmarks for instance get, backup get/list, and database list #5125
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5125 +/- ##
=======================================
Coverage 57.45% 57.45%
=======================================
Files 309 309
Lines 67327 67327
=======================================
Hits 38683 38683
Misses 27199 27199
Partials 1445 1445 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
42f9347 to
1c79dea
Compare
67d354a to
182f63a
Compare
182f63a to
8919284
Compare
| // | ||
| // To compare performance: | ||
| // | ||
| // benchstat testdata/benchmark.baseline <(CLI_RUN_BENCHMARKS=true go test -bench=. -benchtime=100x .) |
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.
How can this tool be installed?
| instanceReadyTimeout = 3 * time.Minute | ||
| ) | ||
|
|
||
| func setupBenchmark(b *testing.B) (*scw.Client, core.TestMetadata, func(args []string) any) { |
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.
Could this be transferred in the acctest package ? It does not seem specific to this particular command
|
|
||
| func newBenchmarkStats() *benchmarkStats { | ||
| return &benchmarkStats{ | ||
| enabled: os.Getenv("CLI_BENCH_TRACE") == "true", |
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 think we need an internal env package similar to what exists in terraform.
close 4429
Community Note
Relates OR Closes #0000
Release note for CHANGELOG: