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.
 
 
韩天峰 a4dee96fcf perf: optimize stable integer property sums 11 hours ago
..
.gitignore perf: use native property handlers for ordinary classes 14 hours ago
README.md perf: optimize stable integer property sums 11 hours ago
benchmark.php perf: use native property handlers for ordinary classes 14 hours ago
project.yml perf: benchmark release builds with O3 and LTO 11 hours ago
run.php perf: optimize stable integer property sums 11 hours ago

README.md

Dynamic property benchmark

This benchmark compares the same dynamic and static property operations under Zend PHP and a TypePHP -O3 + LTO 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.