use crc32c::crc32c; fn main() { let data = vec![0u8; 1_048_576]; // 1MB // Warmup let _ = crc32c(&data); // Test 100 iterations let start = std::time::Instant::now(); for _ in 0..100 { let checksum = crc32c(&data); } let duration = start.elapsed(); let total_bytes = 100 * 1_048_576; let throughput = (total_bytes as f64) / duration.as_secs_f64(); println!("CRC32C Performance:"); println!("Iterations: 100"); println!("Data size: 1MB"); println!("Total time: {:?}", duration); println!("Throughput: {:.0} MB/s", throughput / 1_048_576.0); }