{"id":13828328,"url":"https://github.com/cebe/Markbench","last_synced_at":"2025-07-09T06:31:42.344Z","repository":{"id":14049418,"uuid":"16752182","full_name":"cebe/Markbench","owner":"cebe","description":"PHP: Markdown benchmarks (+ CLI tools)","archived":false,"fork":true,"pushed_at":"2019-03-19T21:06:21.000Z","size":48,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-05T09:17:40.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"kzykhys/Markbench","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cebe.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":"2014-02-12T01:37:36.000Z","updated_at":"2019-03-19T21:13:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cebe/Markbench","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/cebe%2FMarkbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2FMarkbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2FMarkbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2FMarkbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cebe","download_url":"https://codeload.github.com/cebe/Markbench/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225492420,"owners_count":17482869,"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":[],"created_at":"2024-08-04T09:02:41.650Z","updated_at":"2024-11-20T08:30:26.187Z","avatar_url":"https://github.com/cebe.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"Markdown Benchmarks (PHP)\n=========================\n\n[![Build Status](https://travis-ci.org/kzykhys/Markbench.png?branch=master)](https://travis-ci.org/kzykhys/Markbench)\n[![Latest Stable Version](https://poser.pugx.org/kzykhys/markbench/v/stable.png)](https://packagist.org/packages/kzykhys/markbench)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/f85a4034-6089-4b14-acb5-990e202a5a55/mini.png)](https://insight.sensiolabs.com/projects/f85a4034-6089-4b14-acb5-990e202a5a55)\n\nAll parsers are managed by composer (minimum-stability=stable).\nTested with latest stable version.\n\n[**See the latest benchmark on Travis-CI**](https://travis-ci.org/kzykhys/Markbench)\n\n```\n$ php bin/markbench benchmark --profile=github-sample\nRuntime: PHP7.3.2-3+ubuntu18.04.1+deb.sury.org+1\nHost:    Linux i7559 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64\nProfile: Sample content from Github (http://github.github.com/github-flavored-markdown/sample_content.html) / 1000 times\nClass:   Markbench\\Profile\\GithubSampleProfile\n\n+------------------------+---------+-------------+---------------+----------+--------------+\n| package                | version | dialect     | duration (MS) | MEM (B)  | PEAK MEM (B) |\n+------------------------+---------+-------------+---------------+----------+--------------+\n| erusev/parsedown       | 1.7.1   | gfm         | 1067          | 12582912 | 12582912     |\n| cebe/markdown          | 1.2.1   |             | 1353          | 12582912 | 12582912     |\n| cebe/markdown          | 1.2.1   | extra       | 1445          | 12582912 | 12582912     |\n| cebe/markdown          | 1.2.1   | gfm         | 1573          | 12582912 | 12582912     |\n| erusev/parsedown-extra | 0.7.1   | gfm \u0026 extra | 1946          | 12582912 | 12582912     |\n| michelf/php-markdown   | 1.8.0   |             | 2199          | 12582912 | 12582912     |\n| michelf/php-markdown   | 1.8.0   | extra       | 2463          | 12582912 | 12582912     |\n| kzykhys/ciconia        | v1.0.2  |             | 2468          | 14680064 | 14680064     |\n| kzykhys/ciconia        | v1.0.2  | gfm         | 2959          | 14680064 | 14680064     |\n| league/commonmark      | 0.18.1  | commonmark  | 4639          | 14680064 | 14680064     |\n+------------------------+---------+-------------+---------------+----------+--------------+\n```\n\nTested parsers\n--------------\n\n* [michelf/php-markdown](https://github.com/michelf/php-markdown) [![Latest Stable Version](https://poser.pugx.org/michelf/php-markdown/v/stable.png)](https://packagist.org/packages/michelf/php-markdown)\n* [kzykhys/ciconia](https://github.com/kzykhys/Ciconia) [![Latest Stable Version](https://poser.pugx.org/kzykhys/ciconia/v/stable.png)](https://packagist.org/packages/kzykhys/ciconia)\n* [erusev/parsedown](https://github.com/erusev/parsedown) [![Latest Stable Version](https://poser.pugx.org/erusev/parsedown/v/stable.png)](https://packagist.org/packages/erusev/parsedown)\n* [erusev/parsedown-extra](https://github.com/erusev/parsedown-extra) [![Latest Stable Version](https://poser.pugx.org/erusev/parsedown-extra/v/stable.png)](https://packagist.org/packages/erusev/parsedown-extra)\n* [cebe/markdown](https://github.com/cebe/markdown) [![Latest Stable Version](https://poser.pugx.org/cebe/markdown/v/stable.png)](https://packagist.org/packages/cebe/markdown)\n* [league/commonmark](https://github.com/thephpleague/commonmark) [![Latest Stable Version](https://poser.pugx.org/league/commonmark/v/stable.png)](https://packagist.org/packages/league/commonmark)\n\nInternals\n---------\n\nEach parser is executed asynchronously using [kzykhys/Parallel.php](https://github.com/kzykhys/Parallel.php)\n\n```\nRunner\n +--\u003e(kzykhys/Parallel.php)\n        +-- child process #1 --+\n        +-- child process #2 --+--\u003e output\n        +-- child process #3 --+\n        |-- duration/mem usage --|\n```\n\n### Requirements\n\n* PHP5.4+\n* Compiled with --enable-pcntl\n\nAdd a parser\n------------\n\n* Put your class that implements `Markbench\\DriverInterface` into `Driver` directory.\n* Run command again\n\n**Feel free to fork and send a pull request!**\n\nRun a benchmark\n---------------\n\n```\ncomposer install\nbin/markbench benchmark\n```\n\n```\n$ bin/markbench help benchmark\nUsage:\n benchmark [--parser=\"...\"] [-p|--profile[=\"...\"]]\n\nOptions:\n --parser              Name of a parser. Available: cebe/markdown, cebe/markdown:gfm, kzykhys/ciconia, kzykhys/ciconia:gfm, erusev/parsedown, michelf/php-markdown, michelf/php-markdown:extra\n --profile (-p)        Name of a profile. (default: \"default\")\n --help (-h)           Display this help message.\n --quiet (-q)          Do not output any message.\n --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n --version (-V)        Display this application version.\n --ansi                Force ANSI output.\n --no-ansi             Disable ANSI output.\n --no-interaction (-n) Do not ask any interactive question.\n```\n\n### Profiles\n\n* default\n* blank\n* github-sample\n\n### Add a profile\n\n* Put your class that implements `Markbench\\ProfileInterface` into `Profile` directory.\n* Run `php bin/markbench benchmark --profile=your_profile_name`\n\n**Feel free to fork and send a pull request!**\n\nLicense\n-------\n\nThe MIT License\n\nAuthor\n------\n\nKazuyuki Hayashi (@kzykhys)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebe%2FMarkbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcebe%2FMarkbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebe%2FMarkbench/lists"}