-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add benchmarks #6
Comments
What about benchmarks against |
Sure, that would be good too |
I added toml-reader over here: https://arp242.github.io/toml-test-matrix, which also includes some benchmarks. Adding the test verification wasn't too hard as toml-reader already includes a script for this, but I'm having a bit more trouble with the benchmark program; I added (adapted from toml-parser):
But it's always very fast:
79 nanoseconds to parse a 5M file would be quite impressive. It's more realistic for toml-parser – I guess something in toml-reader evaluates more lazy? It's probably a very simple fix, but I don't really know Haskell so not so easy to fix for me. Would you mind telling me how to fix it? 😅 |
@arp242 Well it seems like you're passing one argument to |
Ah right; it now fails with:
I tried a few things to get the type of txt correct, but it's all failing on me 😅 |
-- top of file
import qualified Data.Text as Text
-- here
parseTOML filename (Text.pack txt) |
Thanks, I got it working. |
Can use the Continuous Benchmark GitHub action to track performance over time:
customSmallerIsBetter
templatecriterion
library for benchmarks already has a--template json
optionfoo.json
to thebenchmark.json
format thatcustomSmallerIsBetter
expects (break out into separate library?)The text was updated successfully, but these errors were encountered: