haskell / haskell/vector

lists vs pure vector vs monadic vector stream performance benchmarks

Open
#207 1 comment 1 reaction 0 assignees View on GitHub
help-wanted
Dominant language
Haskell
Stars
400
Forks
145
PR merge metrics
No merged PRs in 30d

Description

I tried benchmarking pure lists, pure vectors and monadic vector streams to see how they fare against each other. Surprisingly monadic vector seems to be doing better than the other two. I am puzzled why the pure vector is not as good as monadic version, I guess they both use the same underlying implementation. Are there some inlining issues? Or I am not benchmarking correctly?

The benchmark results [can be seen here](https://github.com/composewell/streaming-benchmarks/blob/master/charts-0). Monadic vector benchmarking code is in [Vector.hs](https://github.com/composewell/streaming-benchmarks/blob/master/Benchmarks/Vector.hs) and the pure vector benchmarking code is in [PureVector.hs](https://github.com/composewell/streaming-benchmarks/blob/master/Benchmarks/VectorPure.hs).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.