https://github.com/ovr/php-zephir-hhvm-benchmark
Benchmark your PHP/Zephir/HHVM
https://github.com/ovr/php-zephir-hhvm-benchmark
Last synced: 10 months ago
JSON representation
Benchmark your PHP/Zephir/HHVM
- Host: GitHub
- URL: https://github.com/ovr/php-zephir-hhvm-benchmark
- Owner: ovr
- Created: 2014-12-23T13:26:55.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-15T07:50:56.000Z (almost 11 years ago)
- Last Synced: 2025-01-13T09:08:20.777Z (11 months ago)
- Language: C
- Homepage:
- Size: 688 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Benchmark for PHP/Zephir/HHVM
=============================
## How to run?
By one command:
```bash
curl -sS https://raw.githubusercontent.com/ovr/php-zephir-hhvm-benchmark/master/benchmark.php | php
```
## Tests
* math
* methodCallEmpty
* methodCallBool
* arrayAppendInt
* arrayAppendString
* readClassConst
* readClassConstBySelf
## Simple output
| Test | Min | Max | Avg |
|----------------------|----------------------|----------------------|----------------------|
| math | 1.2821700572968 | 1.3130078315735 | 1.2895672798157 |
| methodCallEmpty | 0.11392712593079 | 0.1202609539032 | 0.11500084400177 |
| methodCallBool | 0.12116003036499 | 0.12568402290344 | 0.12210638523102 |
| arrayAppendInt | 0.34773802757263 | 0.35477590560913 | 0.35250170230865 |
| arrayAppendString | 0.35706996917725 | 0.36951684951782 | 0.36107654571533 |
| readClassConst | 0.049347162246704 | 0.050116062164307 | 0.04967405796051 |
| readClassConstBySelf | 0.059558153152466 | 0.060733079910278 | 0.059996747970581 |
Max: 2.3833541870117
Min: 2.3381989002228
Score: 2k566