hft-benchmarks 0.1.2

High-precision benchmarking tools for high-frequency trading systems with nanosecond-level timing accuracy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Memory allocation benchmarks

use hft_benchmarks::*;

fn main() {
    println!("🚀 Running Memory Allocation Benchmarks...\n");
    
    // Quick calibration for development
    quick_calibrate_tsc_frequency();
    
    // Run built-in memory benchmarks
    benchmark_allocations();           // Test different allocation sizes
    println!();
    benchmark_object_pools();          // Compare pool vs direct allocation  
    println!();
    benchmark_aligned_allocations();   // Test memory alignment impact
}