{"id":18454342,"url":"https://github.com/1password/markdown-benchmarks","last_synced_at":"2025-04-08T03:36:01.536Z","repository":{"id":37178688,"uuid":"177619812","full_name":"1Password/markdown-benchmarks","owner":"1Password","description":"Benchmarking markdown libraries","archived":false,"fork":false,"pushed_at":"2023-03-28T14:41:47.000Z","size":38,"stargazers_count":12,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-16T00:17:36.921Z","etag":null,"topics":["c","golang","markdown","rust"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1Password.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-25T16:02:47.000Z","updated_at":"2024-04-05T07:51:29.000Z","dependencies_parsed_at":"2022-06-24T04:13:52.776Z","dependency_job_id":null,"html_url":"https://github.com/1Password/markdown-benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fmarkdown-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fmarkdown-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fmarkdown-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fmarkdown-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1Password","download_url":"https://codeload.github.com/1Password/markdown-benchmarks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223303757,"owners_count":17123097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","golang","markdown","rust"],"created_at":"2024-11-06T08:03:53.553Z","updated_at":"2024-11-06T08:03:54.182Z","avatar_url":"https://github.com/1Password.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown-benchmarks\n\nTesting performance of the popular markdown libraries:\n\n* [blackfriday](https://github.com/russross/blackfriday)\n* [comrak](https://github.com/kivikakk/comrak)\n* [pulldown-cmark](https://github.com/raphlinus/pulldown-cmark)\n* [cmark](https://github.com/commonmark/cmark)\n* [md4c](https://github.com/mity/md4c)\n\nRunning benchmarks:\n\n```bash\ngit clone git@github.com:commonmark/cmark.git\nmkdir -p cmark/build\ncd cmark/build\ncmake ..\nmake\ncd ../..\n\ngit clone git@github.com:hoedown/hoedown.git\ncd hoedown\nmake\ncd ..\n\ngit clone git@github.com:mity/md4c.git\n\ngit clone git@github.com:1Password/markdown-benchmarks.git\ngo get -u gopkg.in/russross/blackfriday.v2\n\ncd markdown-benchmarks\nmake build\nmake run -s\n```\n\n2020 August results on Intel Core i7 6700 @ 4.0GHz\n\n```bash\n$ make run -s\nBlackfriday (Go):\n  1000 iterations = 0.081s\n 10000 iterations = 0.758s\n100000 iterations = 7.419s\n\nComrak (Rust):\n  1000 iterations =   0.113s\n 10000 iterations =   1.115s\n100000 iterations =  11.113s\n\nPulldown-cmark (Rust):\n  1000 iterations =   0.021s\n 10000 iterations =   0.211s\n100000 iterations =   2.179s\n\nCmark (C):\n  1000 iterations =   0.046s\n 10000 iterations =   0.458s\n100000 iterations =   4.653s\n\nHoedown (C):\n  1000 iterations =   0.022s\n 10000 iterations =   0.227s\n100000 iterations =   2.238s\n\nMD4C (C) with empty callbacks:\n  1000 iterations =   0.012s\n 10000 iterations =   0.118s\n100000 iterations =   1.174s\n```\n\n2019 March results on 2018 Mac Book Pro (2.9 GHz Intel Core i9)\n\n```bash\n$ make run -s\nBlackfriday (Go):\n  1000 iterations = 0.054s\n 10000 iterations = 0.514s\n100000 iterations = 5.121s\n\nComrak (Rust):\n  1000 iterations =   0.264s\n 10000 iterations =   2.542s\n100000 iterations =  26.623s\n\nPulldown-cmark (Rust):\n  1000 iterations =   0.044s\n 10000 iterations =   0.373s\n100000 iterations =   3.785s\n\nCmark (C):\n  1000 iterations =   0.080s\n 10000 iterations =   0.798s\n100000 iterations =   7.788s\n\nHoedown (C):\n  1000 iterations =   0.023s\n 10000 iterations =   0.228s\n100000 iterations =   2.303s\n\nMD4C (C) with empty callbacks:\n  1000 iterations =   0.010s\n 10000 iterations =   0.112s\n100000 iterations =   1.088s\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1password%2Fmarkdown-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1password%2Fmarkdown-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1password%2Fmarkdown-benchmarks/lists"}