benchmark_aligned_allocations

Function benchmark_aligned_allocations 

Source
pub fn benchmark_aligned_allocations()
Expand description

Benchmark allocation alignment impact

Examples found in repository?
examples/memory_benchmarks.rs (line 16)
5fn main() {
6    println!("🚀 Running Memory Allocation Benchmarks...\n");
7    
8    // Quick calibration for development
9    quick_calibrate_tsc_frequency();
10    
11    // Run built-in memory benchmarks
12    benchmark_allocations();           // Test different allocation sizes
13    println!();
14    benchmark_object_pools();          // Compare pool vs direct allocation  
15    println!();
16    benchmark_aligned_allocations();   // Test memory alignment impact
17}