4 ms·
> but how is one to reason about performance when some instructions can slow the CPU. The same way one should always do so on an advanced out-of-order CPU larg
by greggyb 6y ago
> but how is one to reason about performance when some instructions can slow the CPU.
The same way one should always do so on an advanced out-of-order CPU largely being programmed in modern high level languages: through thorough profiling and performance testing.
- deleuze 6y agoEmpiricism? In my software development? No way.
- haecceity 6y agoI appreciate the humor but that's more time consuming than comparing instruction cycle counts and data dependencies. It's also workload dependent when it wouldn't be if they didn't come up with this throttling thing even if out of order execution makes it complicated.
- greggyb 6y agoMost programmers are not regularly writing primarily assembly or reviewing the assembly generated by their compiler. These are the scenarios where instruction cycle counts become relevant - everything else is abstracted too far to rely on anything other than profiling and testing. If that's you, then I'm sorry for my response which didn't really take you into account.