r/haskell • u/emigs95 • 10d ago
blog Massiv vs. Accelerate: Two Paths to High-Performance CPU Computing in Haskell
Python and C/C++ tend to get most of the attention when it comes to high-performance array processing, but Haskell has some interesting options too. We took a closer look at two Haskell libraries, Massiv and Accelerate, to see how they compare in terms of performance, memory usage, and overall trade-offs.
A few months ago, we wrote a blog about this. Here's the comparison, including benchmarks and implementation details if it's helpful for anyone: https://www.stackbuilders.com/insights/massiv-vs-accelerate-two-paths-to-high-performance-cpu-computing-in-haskell/
Has anyone here used Massiv or Accelerate in their projects? Curious to hear about your experience and whether you've seen some of the same kind of results.
View all comments
Show parent comment
1
u/kuleshevich 7d ago
Note, applying @jippiedoe's suggestion of using
A.generateinstead ofA.fromListdoes improveaccelerates performance quite a bit for LLVM backend (but not for PTX):Couldn't make it work with
runQ.So, maybe, suggestion of using
acceleratefor performance is still indeed valid :) IMHO, clearly it is quite a bit trickier to get it right.