Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kazu-yamamoto/parser-benchmark

A tiny benchmark for parsers of Haskell
https://github.com/kazu-yamamoto/parser-benchmark

Last synced: 7 days ago
JSON representation

A tiny benchmark for parsers of Haskell

Awesome Lists containing this project

README

        

A tiny benchmark for parsers of Haskell
Kazu Yamamoto

This benchmark compares String, Lazy ByteString, and Lazy Text of
Parsec3. Support of Lazy Text for Lazy Text is found:

https://github.com/kazu-yamamoto/parsec3/commit/58c268c37e54a470c841c3ef5ecb7722f625552e

This benchmark parses /usr/share/dict/words and extracts the string
"tre". You need to prepare /usr/share/dict/words by yourself.

% head -n 10000 /usr/share/dict/words > input

Then execute, the benchmark:

% sh bench.sh

After execution, you can find "plot.png".