Skip to content

Conversation

@bugparty
Copy link
Owner

@bugparty bugparty commented Jun 7, 2025

Summary

  • split GitHub Actions into unit tests and performance benchmarks
  • add CMake option BITVECTOR_ENABLE_BOUND_CHECK to allow disabling bounds checks
  • guard all bounds checks in bitvector.hpp with BITVECTOR_NO_BOUND_CHECK
  • skip out-of-range test when bounds checking is disabled

Testing

  • cmake -DBITVECTOR_ENABLE_BOUND_CHECK=ON ..
  • cmake --build .
  • ctest --output-on-failure
  • cmake -DBITVECTOR_ENABLE_BOUND_CHECK=OFF ..
  • cmake --build .
  • ctest --output-on-failure
  • ./bitvector_benchmark --benchmark_min_time=0.01s

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

@bugparty bugparty merged commit 30bf30b 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.

2 participants