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.
 
 
韩天峰 6df71ec557 perf: optimize stable integer property sums 5 hours ago
..
property-access perf: optimize stable integer property sums 5 hours ago
README.md perf: benchmark release builds with O3 and LTO 5 hours ago
bench.php perf: use native property handlers for ordinary classes 11 hours ago
micro_bench.php perf: use native property handlers for ordinary classes 11 hours ago

README.md

TypePHP benchmarks

This directory contains repeatable performance workloads used to guide and verify compiler/runtime optimizations. Benchmark results depend on the CPU, PHP build, compiler, and system load, so compare PHP and TypePHP on the same machine instead of committing absolute timing expectations.

  • bench.php and micro_bench.php are the original general workloads moved from examples/.
  • property-access/ builds and compares dynamic/static property access under Zend PHP and TypePHP.

Run the property benchmark from the repository root:

php benchmark/property-access/run.php

The property benchmark builds the generated application with -O3 and LTO. For meaningful results, link it against a Release build of PHPX as well; a Debug/-O0 libphpx makes property helper calls several times slower and is not representative of a release package.