Open ujos opened 2 years ago
Because __rdtsc is not serializable CPU is free to reorder the execution of this instruction which could lead to wrong latency measurements results.
__rdtsc
Instead the serializable version __rdtscp should be used.
__rdtscp
Ok, I think you're right. At the same time, __rdtscp is more expensive. I guess I need to revisit that part. Thanks for the note.
Because
__rdtsc
is not serializable CPU is free to reorder the execution of this instruction which could lead to wrong latency measurements results.Instead the serializable version
__rdtscp
should be used.