Module bench

Module bench 

Source
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§

DictionaryBenchInfo
Information about a dictionary’s benchmark capabilities.
PlatformInfo
Platform capabilities for SIMD.

Enums§

EncodingPath
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).