⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module bench

Module bench 

Source
Expand description

Benchmarking framework for VeridianOS kernel

Provides performance measurement capabilities for kernel subsystems

Structs§

Bencher
Simple bencher for benchmark tests
BenchmarkHarness
Benchmark harness for running multiple benchmarks
BenchmarkResult
Result of a benchmark run

Traits§

Benchmark
Trait for benchmarkable operations

Functions§

bench_function
Run a benchmark function multiple times
black_box
Black box to prevent compiler optimizations
cycles_to_ns
Convert cycles to nanoseconds (approximate) This assumes a 2GHz processor for now
read_timestamp
Architecture-specific timestamp counter.