fn syscall_getpid() {
    use std::process;

    let result = benchmark(
        || {},
        |_test| {
            black_box(process::id());
            true
        },
    )
    .unwrap();
    result.print_results("Sycall getpid(2)", 0);
}
// this comes from the auxilirary vector on some OSes, making this not do a syscall.
// on the linux kernel I've been testing on, it does do a syscall. on darwin, it doesn't.
this comes from the auxilirary vector on some OSes, making this not do a syscall.
on the linux kernel I've been testing on, it does do a syscall. on darwin, it doesn't.
this comes from the auxilirary vector on some OSes making this not do a syscall . on the linux kernel I ' ve been testing on it does do a syscall . on darwin it doesn ' t .
fn syscall_getpid() {
    use std::process;
    let result = benchmark(
        || {},
        |_test| {
            black_box(process::id());
            true
        },
    )
    .unwrap();
    result.print_results("Sycall getpid(2)", 0);
}
fn syscall_getpid ( ) { use std :: process ; let result = benchmark ( | | { } , | _test | { black_box ( process :: id ( ) ) ; true } , ) . unwrap ( ) ; result . print_results ( " " , 0 ) ; }
this comes from the auxilirary vector on some OSes, making this not do a syscall.
this comes from the auxilirary vector on some OSes making this not do a syscall .