Skip to content

Add microbenchmarks and clean bounds check config#13

Merged
bugparty merged 3 commits into
mainfrom
codex/研究代码与标准库速度差异
Jun 7, 2025

Hidden character warning

The head ref may contain hidden characters: "codex/\u7814\u7a76\u4ee3\u7801\u4e0e\u6807\u51c6\u5e93\u901f\u5ea6\u5dee\u5f02"
Merged

Add microbenchmarks and clean bounds check config#13
bugparty merged 3 commits into
mainfrom
codex/研究代码与标准库速度差异

Conversation

@bugparty

@bugparty bugparty commented Jun 7, 2025

Copy link
Copy Markdown
Owner

Summary

  • clarify comment for benchmark SIZE constant
  • extend Google Benchmark registrations to run at least 5 seconds
  • benchmark specialised bitvector routines (set_bit_true_6, qset_bit_true_6_v2, incrementUntilZero) and std::vector equivalents
  • consolidate bounds‑check option to BITVECTOR_NO_BOUND_CHECK

Testing

  • cmake -S . -B build -DBV_BOUNDS_CHECK=OFF -DCMAKE_BUILD_TYPE=Release
  • cmake --build build --target bitvector_benchmark bitvector_tests
  • ./build/bitvector_tests
  • ./build/bitvector_benchmark --benchmark_min_time=0.01

https://chatgpt.com/codex/tasks/task_e_6843a19f5fc483278d9181d05be2d477

@bugparty
bugparty merged commit 4167143 into main Jun 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant