Expand description
Benchmarking utilities for comparing encoding paths.
This module exposes internal encoding paths for performance comparison:
- Scalar: Pure Rust, no SIMD
- LUT: SIMD with runtime lookup tables
- Specialized: Hardcoded SIMD for known dictionaries
§Example
ⓘ
use base_d::bench::{EncodingPath, encode_with_path, detect_available_paths};
let dict = get_dictionary("base64");
let paths = detect_available_paths(&dict);
for path in paths {
let result = encode_with_path(data, &dict, path);
}Structs§
- Dictionary
Bench Info - Information about a dictionary’s benchmark capabilities.
- Platform
Info - Platform capabilities for SIMD.
Enums§
- Encoding
Path - Available encoding paths for benchmarking.
Functions§
- decode_
with_ path - Decode using a specific path (for benchmarking).
- detect_
available_ paths - Detect which encoding paths are available for a dictionary.
- encode_
with_ path - Encode using a specific path (for benchmarking).