/// SM4 throughput benchmark for pilot-bench.
///
/// Encrypts a 1 MiB buffer in ECB blocks and prints MB/s to stdout.
/// Pilot calls this repeatedly until statistical confidence is achieved.
use black_box;
use Instant;
use BlockCipher;
use Sm4;
const MIB: usize = 1024 * 1024;
const BLOCK: usize = 16;
const BLOCKS: usize = MIB / BLOCK;