logoalt Hacker News

kccqzy • yesterday at 9:34 PM • 1 reply • view on HN

Intel published some guidance on doing precise benchmarks. Basically run your code inside the kernel, turn off interrupts, use the cpuid instruction to prevent out-of-order execution, use rdtscp instruction instead of rdtsc, etc.


Replies

ozgrakkurt • yesterday at 10:18 PM

> prevent out-of-order execution

Won't this make the results inaccurate?

➕ show 1 reply