memory_benchmarks/memory_benchmarks.rs
1//! Memory allocation benchmarks
2
3use hft_benchmarks::*;
4
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}