4 ms·
> Benchmarks show that high-level Haskell code written using our compiler and libraries can produce code that is faster than both compiler- and hand-vectorized
by im3w1l 9y ago
> Benchmarks show that high-level Haskell code written using
our compiler and libraries can produce code that is faster than both compiler- and hand-vectorized C.
Big, if it holds up.
- Veedrac 9y agoWe're talking <10% difference on one particular toy example exclusively on arrays at least ¼MiB large. Given how similar the code produced is from both compilers (literally just movapd-mulpd-addpd), the only relevant difference seems to be usage of prefetching, which C compilers don't do much because the common wisdom is that it hurts in most scenarios.