Skip to content

perf(test): parallelize bitmap subtests and optimize Set2SetBit with …#3507

Open
Tangruilin wants to merge 2 commits into
apache:unstablefrom
Tangruilin:fix#2642
Open

perf(test): parallelize bitmap subtests and optimize Set2SetBit with …#3507
Tangruilin wants to merge 2 commits into
apache:unstablefrom
Tangruilin:fix#2642

Conversation

@Tangruilin
Copy link
Copy Markdown
Contributor

…pipeline

Part of #2642

  • Add t.Parallel() to all 34 subtests for concurrent execution
  • Use util.KeyPrefix(t) for unique key names per subtest
  • Replace per-bit SETBIT calls with pipelined SETBIT in Set2SetBit (reduces ~8000 RTTs to 1 RTT for 1000-byte vectors)
  • Replace defer with t.Cleanup() so resources live until subtests finish
  • Move KeyPrefix helper to dedicated keys.go
  • Fix duplicate test name "BITPOS BIT not found check check"
  • Test time: 52s → 11s (~4.7x speedup)

Assisted-by: Claude Code:DeepSeek-v4-pro

@Tangruilin Tangruilin force-pushed the fix#2642 branch 2 times, most recently from 4f232c9 to 74b4413 Compare May 30, 2026 08:12
…pipeline

Part of apache#2642

- Add t.Parallel() to all 34 subtests for concurrent execution
- Use util.KeyPrefix(t) for unique key names per subtest
- Replace per-bit SETBIT calls with pipelined SETBIT in Set2SetBit
  (reduces ~8000 RTTs to 1 RTT for 1000-byte vectors)
- Replace defer with t.Cleanup() so resources live until subtests finish
- Move KeyPrefix helper to dedicated keys.go
- Fix duplicate test name "BITPOS BIT not found check check"
- Test time: 52s → 11s (~4.7x speedup)

Assisted-by: Claude Code:DeepSeek-v4-pro
@jihuayu jihuayu self-requested a review May 31, 2026 01:49
@jihuayu
Copy link
Copy Markdown
Member

jihuayu commented May 31, 2026

Greate! Thanks for the PR! I'll take a look at it in a few days.

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.

2 participants