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.
 
 

16 lines
701 B

# Static class cache benchmark
This benchmark covers a common metadata-cache pattern: a static array keyed by
`static::class`, guarded by `isset()`, plus a wrapper method using
`static::method()`. It measures static-property lookup, array lookup, strict
return checks, and late-static dispatch together.
Run it from the repository root against matching Release PHP and PHPX builds:
```bash
PHPX_HOME=../phpx PHP_BIN=/opt/php-8.5-nts/bin/php php benchmark/static-cache/run.php
```
The TypePHP binary is built with `-O3` and LTO. Results use the best of five
measured rounds after two warm-up rounds; checksums must match before ratios are
reported. Use `--skip-build` to reuse the existing binary.