Skip to main content

Crate krabka_log_iobench

Crate krabka_log_iobench 

Source
Expand description

Bench-only support crate.

This crate hosts benches/mmap_read.rs and benches/uncached_io.rs. The mmap bench needs the unsafe memmap2::Mmap::map call, and the workspace-wide unsafe_code = "forbid" policy disallows that call in the main crates. This crate opts out of the workspace lint set, as Cargo.toml shows, so the bench can measure the mmap path without a weaker policy elsewhere. The O_DIRECT and RWF_DONTCACHE bench needs no unsafe.