fn syscall_stat() {
    let f = fs::File::open("/tmp").unwrap();

    let result = benchmark(
        || {},
        |_test| {
            let metadata = f.metadata().unwrap();
            black_box(metadata);
            true
        },
    )
    .unwrap();
    result.print_results("Sycall stat(2)", 0);
}
// syscall, can't be optimized out
syscall, can't be optimized out
syscall can ' t be optimized out
fn syscall_stat() {
    let f = fs::File::open("/tmp").unwrap();
    let result = benchmark(
        || {},
        |_test| {
            let metadata = f.metadata().unwrap();
            black_box(metadata);
            true
        },
    )
    .unwrap();
    result.print_results("Sycall stat(2)", 0);
}
fn syscall_stat ( ) { let f = fs :: File :: open ( " " ) . unwrap ( ) ; let result = benchmark ( | | { } , | _test | { let metadata = f . metadata ( ) . unwrap ( ) ; black_box ( metadata ) ; true } , ) . unwrap ( ) ; result . print_results ( " " , 0 ) ; }
syscall, can't be optimized out
syscall can ' t be optimized out