Source

Branch

1/ @matiasgoldberg

@SebAaltonen

I have one suggestion: 1st stage you measure how long pause takes. In second step you issue pause every N iterations (or N pause per iteration) https://aloiskraus.wordpress.com/2018/06/16/why-skylakex-cpus-are-sometimes-50-slower-how-intel-has-broken-existing-code/