https://github.com/phpbench/parser-benchmarks
PHP Parser Benchmarks
https://github.com/phpbench/parser-benchmarks
Last synced: 3 months ago
JSON representation
PHP Parser Benchmarks
- Host: GitHub
- URL: https://github.com/phpbench/parser-benchmarks
- Owner: phpbench
- License: mit
- Created: 2018-05-03T20:32:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-03T20:36:12.000Z (over 7 years ago)
- Last Synced: 2025-01-19T13:15:36.512Z (about 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP Parser Benchmarks
=====================
Comparison of [nikic/php-parser](https://github.com/nikic/PHP-Parser) and the
[Tolerant PHP Parser](https://github.com/Microsoft/tolerant-php-parser) when
parsing the PHPUnit TestCase (version 5.0 for no particular reason other than
it's huge).
Example result:
```
./vendor/bin/phpbench report --uuid=latest --report='extends:aggregate,cols:[benchmark,revs,its,mem_peak,mode,rstdev]' --time-unit=milliseconds master ◼
suite: 133ee179a3d6f266c949f9486ba0dc8c918fd348, date: 2018-05-03, stime: 22:26:30
+---------------------+------+-----+-------------+----------+--------+
| benchmark | revs | its | mem_peak | mode | rstdev |
+---------------------+------+-----+-------------+----------+--------+
| TolerantParserBench | 10 | 33 | 21,043,208b | 53.934ms | 3.37% |
| PhpParserBench | 10 | 33 | 42,620,512b | 62.045ms | 5.27% |
+---------------------+------+-----+-------------+----------+--------+
```