TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
韩天峰 e44007846b perf: use native property handlers for ordinary classes 10 hours ago
..
.gitignore perf: use native property handlers for ordinary classes 10 hours ago
README.md perf: use native property handlers for ordinary classes 10 hours ago
benchmark.php perf: use native property handlers for ordinary classes 10 hours ago
project.yml perf: use native property handlers for ordinary classes 10 hours ago
run.php perf: use native property handlers for ordinary classes 10 hours ago

README.md

Dynamic property benchmark

This benchmark compares the same dynamic and static property operations under Zend PHP and a TypePHP -O2 binary. Each metric is the best of seven rounds after three warm-up rounds and is reported in nanoseconds per property access.

Run it from the repository root:

php benchmark/property-access/run.php

To reuse an existing binary, add --skip-build. For local regression checks, --max-ratio=1.5 exits unsuccessfully when a dynamic read or write takes more than 1.5 times the corresponding Zend PHP result.