2 ms·
> pyast64 with peephole 0.24 29.7 > C version (gcc -O0) 0.22 31.8 Modern x86_64 processors are really good at ruing "bad" asm pretty efficiently.
by mtanski 9y ago
> pyast64 with peephole 0.24 29.7
> C version (gcc -O0) 0.22 31.8
Modern x86_64 processors are really good at ruing "bad" asm pretty efficiently.
- alephnil 9y agoAbsolutely. The amount of tricks used to achieve that is amazing, including things register renaming, branch prediction, virtual registers, instruction reordering etc. That is not really what demonstrated here though, as gcc was run with optimizations turned off, since otherwise the program would have been optimized to printing a constant.