Skip to content

test: modernize benchmarks with b.Loop - #240

Merged
linkdata merged 4 commits into
mainfrom
chore/modernize-benchmark-loops
Aug 7, 2026
Merged

test: modernize benchmarks with b.Loop#240
linkdata merged 4 commits into
mainfrom
chore/modernize-benchmark-loops

Conversation

@linkdata

@linkdata linkdata commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • migrate 29 benchmark loops to testing.B.Loop
  • preserve index-dependent workloads with explicit counters
  • retain and document ten intentional b.N uses for Node dispatch, bounded batching, and timer-isolated fixtures
  • keep testing.PB.Next for parallel benchmarks

Verification

  • JAWS_REQUIRE_NODE=1 go test -run '^$' -bench . -benchtime=1x ./...\n- JAWS_REQUIRE_NODE=1 go test -run '^$' -bench . -benchtime=3x ./...\n- JAWS_REQUIRE_NODE=1 go test -race ./... -count=1\n- JAWS_REQUIRE_NODE=1 go test ./... -count=1\n- go vet ./...\n- staticcheck ./...\n- golangci-lint run\n- gosec -quiet ./...\n- go build ./...

@linkdata
linkdata force-pushed the chore/modernize-benchmark-loops branch from 9d01062 to 3d26888 Compare August 7, 2026 05:43
@linkdata
linkdata merged commit 903d872 into main Aug 7, 2026
7 checks passed
@linkdata
linkdata deleted the chore/modernize-benchmark-loops branch August 7, 2026 06:51
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.

1 participant