Real-life parsers implemented in Attoparsec and Megaparsec with performance comparisons
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
ParsersBench
bench-data
bench
.gitignore
LICENSE.md
README.md
Setup.hs
parsers-bench.cabal
stack.yaml

README.md

Parsers bench

License BSD3 CircleCI

This repo contains a collection of identical parsers implemented in Attoparsec and Megaparsec from its current master branch. The purpose here is to learn how much Attoparsec is actually faster than Megaparsec for common parsing tasks. We do not focus on microbenchmarks here. The benchmarks will be used to guide design of Megaparsec 6.

To generate Criterion report with stack, execute:

$ stack bench parsers-bench:bench-speed --benchmark-arguments=-oreport.html
$ stack bench parsers-bench:bench-memory

License

Copyright © 2017–2018 Mark Karpov

Distributed under BSD 3 clause license.