5 ms·
This is an objection that people seem to raise disproportionately often - particularly when they have no performance tests and never profile their code. The one
by lmm 11y ago
This is an objection that people seem to raise disproportionately often - particularly when they have no performance tests and never profile their code. The one time I've seen a real-world head-to-head comparison between C and Haskell, the Haskell version performed 5x better than the C version. In fact I've literally never known a real-world Haskell program to have serious performance problems (I've known some that needed a small amount of time to be spent on profiling).
I realise this is much less satisfactory than a convincing theoretical solution; all I can say is that it just doesn't come up in practice.
- pron 11y ago> In fact I've literally never known a real-world Haskell program to have serious performance problems... all I can say is that it just doesn't come up in practice. Considering how few real-world Haskell programs are, and how small they tend to be, I think it's best to say that we don't yet know how serious the effect is. If anyone ever writes an ERP or an air-traffic control system in Haskell, then we'll have pertinent evidence to support or contradict the claim.
- kqr 11y agoWell, Erlang is also basically immutable at its core, and seems to do reasonably well. It's definitely not up there with C (that'd be ridiculous) but within its domain I haven't heard many performance complains either.
- pron 11y agoMost performance-sensitive Erlang programs use C for the performant bits (they use Erlang for the control plane and C for the data plane). So it's fast enough only for things that don't need to be fast.
- daenz 11y agoThis isn't real world, but it's useful to see: http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=ghc&lang2=gcc http://benchmarksgame.alioth.debian.org/u64q/compare.php?lan... 2-6x slower, more memory, roughly same amount of code.
- srean 11y ago> The one time .... Performed 5x... Ah! I see that totally seals the deal and is so much more better than the claims of the other people you were complaining about. That BLAS author must be an idiot same for Nginx. 5x here I come. Heck why are these js runtime writers wasting there time. Its 5x do you hear me. I am sure comments like these would help Haskell so much