Why Skylake CPUs Are Sometimes 50% Slower – How Intel Has Broken Existing Code
"Pause Intrinsic" seems to be what I'm after... but will I be able to leverage it without creating something in C++?
After some digging around, it seems thread.spinwait is what I want to get to the "pause" instruction with minimal overhead.
Thread.SpinWait Method (Int32)
Okay... that's a little closer. Then I happened to find this gem.
PowerShell Using Threads in C# to Launch a Process and Read Output Streams
Well, now. Putting some C# into a Powershell variable... that seems like something I can do 😇
So I cooked this up.
Sample results from my laptop [Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz].