quill icon indicating copy to clipboard operation
quill copied to clipboard

__rdtscp vs __rdtsc in logger_benchmarks

Open DanielekW opened this issue 2 months ago • 1 comments

I have a question to logger_benchmarks. In ns_per_rdtsc_tick() to convert rdtsc to wall time __rdtsc() is used while next in benchmark tests __rdtscp(&aux) is used. Why in ns_per_rdtsc_tick() you do not use __rdtscp?

DanielekW avatar Apr 15 '24 07:04 DanielekW

__rdtsc() should have lower overhead. __rdtscp() has an additional serialising barrier, I believe I used it in benchmarks for more accurate results.

odygrd avatar May 16 '24 00:05 odygrd