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.
 
 

563 B

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.