Open
Conversation
Adds benchmark suite for absl::flat_hash_map, the recommended default hash map that previously had no public benchmarks. Benchmarks included: - Basic operations (insert, lookup hit/miss) for int and string keys - Load factor analysis at 25%, 50%, 75%, and 87% capacity - Iteration performance at different load factors - Reserve vs no-reserve comparison across multiple sizes Key findings from benchmark results: - reserve() provides 20-24% performance improvement for known sizes - Load factor has minimal impact on lookup speed (~2.1-2.2M ops/sec) - Higher load factors improve iteration by 30% (better cache locality) - Failed lookups are 50% faster than successful lookups Testing: All benchmarks compile and run successfully with Bazel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds benchmark suite for absl::flat_hash_map, the recommended default hash map that previously had no public benchmarks.
Benchmarks included:
Key findings from benchmark results:
Testing: All benchmarks compile and run successfully with Bazel.