pub fn is_test_mode() -> bool {
    !env::args().any(|arg| arg == "--bench")
}
Checks whether a benchmark binary is running in the test mode (as opposed to benchmarking).
core/tests/vm-benchmark/src/criterion.rs