niklas-heer / speed-comparison

A repo which compares the speed of different programming languages.
https://niklas-heer.github.io/speed-comparison
MIT License
475 stars 76 forks source link

Haskell implementation. #97

Closed Demonstrandum closed 1 year ago

Demonstrandum commented 1 year ago

This addresses issue #83.

Ported C implementation to Haskell, as well as two alternate more idiomatic implementations. One using lazy infinite lists, and another which is essentially a right fold.

Only the port is included as part of the speed comparison. I can remove the alternate implementations in src/alt if desired.

niklas-heer commented 1 year ago

combined_results

niklas-heer commented 1 year ago

@Demonstrandum thank you very much for your contribution! :tada: