Skip to content

Commit

Permalink
relabel page table results
Browse files Browse the repository at this point in the history
  • Loading branch information
utaal committed Aug 21, 2024
1 parent b6546ac commit 8a52983
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions macro-perf/page-table-single-threaded/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn benchmark_nros_vmem() {
// println!("{:x?}", pt.resolve(i * 4096));
}
let time = time_before.elapsed();
println!("Time NrOS Mapping: {} ns", time.as_nanos() as f64 / 100_000_000.0);
println!("Time Base Mapping: {} ns", time.as_nanos() as f64 / 100_000_000.0);

// unmap

Expand All @@ -40,7 +40,7 @@ fn benchmark_nros_vmem() {
// println!("{:x?}", pt.resolve(i * 4096));
}
let time = time_before.elapsed();
println!("Time NrOS Unmapping: {} ns", time.as_nanos() as f64 / 100_000_000.0);
println!("Time Base Unmap: {} ns", time.as_nanos() as f64 / 100_000_000.0);
}

fn alloc_page() -> usize {
Expand Down Expand Up @@ -98,7 +98,7 @@ fn benchmark_verif_noreclaim() {
// }
}
let time = time_before.elapsed();
println!("Time Verified PT Unmapping (no reclaim): {} ns", time.as_nanos() as f64 / 100_000_000.0);
println!("Time Verified Unmap (no reclaim): {} ns", time.as_nanos() as f64 / 100_000_000.0);
}

fn benchmark_verif() {
Expand Down Expand Up @@ -145,7 +145,7 @@ fn benchmark_verif() {
// println!("{:x?}", pt.resolve(i * 4096));
}
let time = time_before.elapsed();
println!("Time Verified PT Mapping: {} ns", time.as_nanos() as f64 / 100_000_000.0);
println!("Time Verified Mapping: {} ns", time.as_nanos() as f64 / 100_000_000.0);
// let post = unsafe { core::arch::x86_64::__rdtscp(&mut _x as *mut u32) };
// let cycles = post - pre;
// println!("Cycles: {}", cycles);
Expand All @@ -163,7 +163,7 @@ fn benchmark_verif() {
// println!("{:x?}", pt.resolve(i * 4096));
}
let time = time_before.elapsed();
println!("Time Verified PT Unmapping: {} ns", time.as_nanos() as f64 / 100_000_000.0);
println!("Time Verified Unmap: {} ns", time.as_nanos() as f64 / 100_000_000.0);
}

fn main() {
Expand Down

0 comments on commit 8a52983

Please sign in to comment.