Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support benchmarking mmap feature #93

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

brannondorsey
Copy link
Contributor

@brannondorsey brannondorsey commented Feb 23, 2025

Adds support to run cargo bench --features=mmap, using open_mmap() in place of open_readfile() when this is the case.

# To test
cargo bench && cargo bench --features=mmap

Results are comparable on my machine, which is perhaps to be expected. Nonetheless this seems like a useful improvement to benches/lookup.rs.

Adds support to run `cargo bench --features=mmap`
@oschwald oschwald merged commit 05681a5 into oschwald:main Feb 23, 2025
19 checks passed
@oschwald
Copy link
Owner

Thanks!

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