Skip to content
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

feat: add jotdown for comparison #57

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

dpc
Copy link
Contributor

@dpc dpc commented Feb 4, 2025

Djot is a "kind-of-more-strict-Markdown" which is (supposedly) making it faster and easier to parse. I am curious myself how well it performs. If the premise is true, I would expect smaller binary overhead and faster parsing.

Djot is a "kind-of-more-strict-Markdown" that is (supposedly) make
it faster and easier to parse. I am curious myself how well it
performs.
@dpc
Copy link
Contributor Author

dpc commented Feb 4, 2025

Name Overhead (release) Build (debug) Parse (release) Downloads Version
null 0 KiB 207ms 0ms - -
comrak 573 KiB 7s 1ms Download count v0.32.0
jotdown 204 KiB 896ms 1ms Download count v0.7.0
markdown 979 KiB 1s 7ms Download count v1.0.0-alpha.21
minimad 26 KiB 530ms 1ms Download count v0.13.1
pulldown-cmark 436 KiB 1s 1ms Download count v0.12.2

I could use a little slower machine, as everything is 1ms... :D ... Good to have problem, I guess.

Viewing the run's json file, it seems like it has similar times as minimad and pulldown, slightly better than comrak?

@dpc
Copy link
Contributor Author

dpc commented Feb 4, 2025

For sanity I compared the outputs:

-rw-r--r-- 1 dpc dpc  87K Feb  3 19:03 jotdown
-rw-r--r-- 1 dpc dpc 109K Feb  3 19:03 pulldown

just to make sure the produced output is at least similar.

@epage epage merged commit 116f2a5 into rosetta-rs:main Feb 4, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants