Skip to content

Conversation

@jremy42
Copy link
Contributor

@jremy42 jremy42 commented Nov 6, 2025

close 4429

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Release note for CHANGELOG:


@jremy42 jremy42 requested a review from a team as a code owner November 6, 2025 08:14
@github-actions github-actions bot added the rdb Managed MySQL and PostgreSQL issues, bugs and feature requests label Nov 6, 2025
@codecov-commenter
Copy link

codecov-commenter commented Nov 6, 2025

Codecov Report

❌ Patch coverage is 0% with 218 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.26%. Comparing base (4cc5461) to head (a5fe4be).
⚠️ Report is 16 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
cmd/scw-benchstat/main.go 0.00% 176 Missing ⚠️
internal/testhelpers/helpers_benchmark.go 0.00% 42 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5125      +/-   ##
==========================================
- Coverage   57.45%   57.26%   -0.19%     
==========================================
  Files         309      311       +2     
  Lines       67327    67545     +218     
==========================================
  Hits        38683    38683              
- Misses      27199    27417     +218     
  Partials     1445     1445              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jremy42 jremy42 force-pushed the feat/rdb-benchmarks branch 3 times, most recently from 42f9347 to 1c79dea Compare November 6, 2025 08:50
@jremy42 jremy42 requested a review from remyleone as a code owner November 6, 2025 08:50
@jremy42 jremy42 force-pushed the feat/rdb-benchmarks branch 2 times, most recently from 67d354a to 182f63a Compare November 6, 2025 13:20
@jremy42 jremy42 force-pushed the feat/rdb-benchmarks branch from 182f63a to 8919284 Compare November 6, 2025 15:06
//
// To compare performance:
//
// benchstat testdata/benchmark.baseline <(CLI_RUN_BENCHMARKS=true go test -bench=. -benchtime=100x .)
Copy link
Member

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) {
Copy link
Member

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",
Copy link
Member

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.

@jremy42 jremy42 force-pushed the feat/rdb-benchmarks branch from 722814d to 8d9e91e Compare November 21, 2025 09:26
@jremy42 jremy42 marked this pull request as draft November 21, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rdb Managed MySQL and PostgreSQL issues, bugs and feature requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add full benchmark on scw rdb instance get

4 participants