PHPackages                             kzykhys/markbench - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. kzykhys/markbench

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

kzykhys/markbench
=================

The markdown benchmark framework

v0.1.3(12y ago)281218[1 issues](https://github.com/kzykhys/Markbench/issues)[1 PRs](https://github.com/kzykhys/Markbench/pulls)MITPHP

Since Feb 13Pushed 12y ago4 watchersCompare

[ Source](https://github.com/kzykhys/Markbench)[ Packagist](https://packagist.org/packages/kzykhys/markbench)[ RSS](/packages/kzykhys-markbench/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (9)Versions (5)Used By (0)

Markdown Benchmarks (PHP)
=========================

[](#markdown-benchmarks-php)

[![Build Status](https://camo.githubusercontent.com/499d5e03583fca3d13e0e9f4cf47b544e9cea09f0697ccdb0ccfc022fd32282e/68747470733a2f2f7472617669732d63692e6f72672f6b7a796b6879732f4d61726b62656e63682e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/kzykhys/Markbench)[![Latest Stable Version](https://camo.githubusercontent.com/d1f4af40d3143dc6f98c889abd228cd78384fea26aab43e748770a979db9c05f/68747470733a2f2f706f7365722e707567782e6f72672f6b7a796b6879732f6d61726b62656e63682f762f737461626c652e706e67)](https://packagist.org/packages/kzykhys/markbench)[![SensioLabsInsight](https://camo.githubusercontent.com/ef265a787956179f617dd11139332999d67e7bbbb1d0c765f4cac8c363856b57/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66383561343033342d363038392d346231342d616362352d3939306532303261356135352f6d696e692e706e67)](https://insight.sensiolabs.com/projects/f85a4034-6089-4b14-acb5-990e202a5a55)

All parsers are managed by composer (minimum-stability=stable). Tested with latest stable version.

[**See the latest benchmark on Travis-CI**](https://travis-ci.org/kzykhys/Markbench)

```
$ php bin/markbench benchmark --profile=github-sample
Runtime: PHP5.5.9
Host:    Linux testing-worker-linux-9-1-25355-linux-14-19501860 2.6.32-042stab079.5 #1 SMP Fri Aug 2 17:16:15 MSK 2013 x86_64
Profile: Sample content from Github (http://github.github.com/github-flavored-markdown/sample_content.html) / 1000 times
Class:   Markbench\Profile\GithubSampleProfile

+----------------------+---------+---------+---------------+----------+--------------+
| package              | version | dialect | duration (MS) | MEM (B)  | PEAK MEM (B) |
+----------------------+---------+---------+---------------+----------+--------------+
| erusev/parsedown     | 0.9.4   |         | 4183          | 9437184  | 9437184      |
| cebe/markdown        | 0.9.2   |         | 5081          | 9437184  | 9699328      |
| cebe/markdown        | 0.9.2   | gfm     | 6293          | 9437184  | 9699328      |
| michelf/php-markdown | 1.4.0   |         | 15568         | 9699328  | 9699328      |
| michelf/php-markdown | 1.4.0   | extra   | 23401         | 9699328  | 9961472      |
| kzykhys/ciconia      | v1.0.3  |         | 32115         | 10747904 | 11010048     |
| kzykhys/ciconia      | v1.0.3  | gfm     | 39654         | 10747904 | 11010048     |
+----------------------+---------+---------+---------------+----------+--------------+

```

Tested parsers
--------------

[](#tested-parsers)

- [michelf/php-markdown](https://github.com/michelf/php-markdown) [![Latest Stable Version](https://camo.githubusercontent.com/ea9399de9a0470f799e14766e5932faa659b300b9cb9b98abf263f4b9d3efc2f/68747470733a2f2f706f7365722e707567782e6f72672f6d696368656c662f7068702d6d61726b646f776e2f762f737461626c652e706e67)](https://packagist.org/packages/michelf/php-markdown)
- [kzykhys/ciconia](https://github.com/kzykhys/Ciconia) [![Latest Stable Version](https://camo.githubusercontent.com/13a6591f1cf260c26fbb060e70c18c78578d309febdc1b9ca69e0bcc10eb50df/68747470733a2f2f706f7365722e707567782e6f72672f6b7a796b6879732f6369636f6e69612f762f737461626c652e706e67)](https://packagist.org/packages/kzykhys/ciconia)
- [erusev/parsedown](https://github.com/erusev/parsedown) [![Latest Stable Version](https://camo.githubusercontent.com/6a54b947059b32888b9c51b3414e9f470a1b955c64aa84e16ed2fe7cb3864c96/68747470733a2f2f706f7365722e707567782e6f72672f6572757365762f7061727365646f776e2f762f737461626c652e706e67)](https://packagist.org/packages/erusev/parsedown)
- [cebe/markdown](https://github.com/cebe/markdown) [![Latest Stable Version](https://camo.githubusercontent.com/a66d5da6020dc8158936ccfbe7e9bbb64caa435d47190245308ed1e5a3ad4053/68747470733a2f2f706f7365722e707567782e6f72672f636562652f6d61726b646f776e2f762f737461626c652e706e67)](https://packagist.org/packages/cebe/markdown)

Internals
---------

[](#internals)

Each parser is executed asynchronously using [kzykhys/Parallel.php](https://github.com/kzykhys/Parallel.php)

```
Runner
 +-->(kzykhys/Parallel.php)
        +-- child process #1 --+
        +-- child process #2 --+--> output
        +-- child process #3 --+
        |-- duration/mem usage --|

```

### Requirements

[](#requirements)

- PHP5.4+
- Compiled with --enable-pcntl

Add a parser
------------

[](#add-a-parser)

- Put your class that implements `Markbench\DriverInterface` into `Driver` directory.
- Run command again

**Feel free to fork and send a pull request!**

Run a benchmark
---------------

[](#run-a-benchmark)

```
composer install
bin/markbench benchmark

```

```
$ bin/markbench help benchmark
Usage:
 benchmark [--parser="..."] [-p|--profile[="..."]]

Options:
 --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
 --profile (-p)        Name of a profile. (default: "default")
 --help (-h)           Display this help message.
 --quiet (-q)          Do not output any message.
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 --version (-V)        Display this application version.
 --ansi                Force ANSI output.
 --no-ansi             Disable ANSI output.
 --no-interaction (-n) Do not ask any interactive question.

```

### Profiles

[](#profiles)

- default
- blank
- github-sample

### Add a profile

[](#add-a-profile)

- Put your class that implements `Markbench\ProfileInterface` into `Profile` directory.
- Run `php bin/markbench benchmark --profile=your_profile_name`

**Feel free to fork and send a pull request!**

License
-------

[](#license)

The MIT License

Author
------

[](#author)

Kazuyuki Hayashi (@kzykhys)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

4472d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd0b200991bf7fdebb898cc649bb1ed5ef429b3e70fe16b79729d1517051354f?d=identicon)[kzykhys](/maintainers/kzykhys)

---

Top Contributors

[![kzykhys](https://avatars.githubusercontent.com/u/1751547?v=4)](https://github.com/kzykhys "kzykhys (23 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (2 commits)")[![hkdobrev](https://avatars.githubusercontent.com/u/506129?v=4)](https://github.com/hkdobrev "hkdobrev (2 commits)")

---

Tags

markdownbenchmark

### Embed Badge

![Health badge](/badges/kzykhys-markbench/health.svg)

```
[![Health](https://phpackages.com/badges/kzykhys-markbench/health.svg)](https://phpackages.com/packages/kzykhys-markbench)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[justinwalsh/daux.io

Documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly

4.6k38.1k1](/packages/justinwalsh-dauxio)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[daux/daux.io

Documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly

825191.0k1](/packages/daux-dauxio)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
