Skip to content

Instantly share code, notes, and snippets.

@johalun
Created October 28, 2019 20:21
Show Gist options
  • Save johalun/3a7c5a8cea01e7031ffbafd92356ad40 to your computer and use it in GitHub Desktop.
Save johalun/3a7c5a8cea01e7031ffbafd92356ad40 to your computer and use it in GitHub Desktop.
clock_gettime benchmarks in bhyve
HOST FREEBSD 13:
johalun@jm ~/d/bench-clock> target/release/deps/bench-528070f83c4850f3
running 2 tests
test bench_get_monotonic_coarsetime ... bench: 50 ns/iter (+/- 26)
test bench_get_monotonic_time ... bench: 92 ns/iter (+/- 25)
test result: ok. 0 passed; 0 failed; 0 ignored; 2 measured
BHYVE FREEBSD 13:
root@bhf:/usr/home/johannes # ./bench-528070f83c4850f3
running 2 tests
test bench_get_monotonic_coarsetime ... bench: 6,113 ns/iter (+/- 682)
test bench_get_monotonic_time ... bench: 6,085 ns/iter (+/- 129)
test result: ok. 0 passed; 0 failed; 0 ignored; 2 measured
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment