perf: benchmark release builds with O3 and LTO

master
韩天峰 7 hours ago
parent e8927bade0
commit d698f4110c
  1. 5
      benchmark/README.md
  2. 3
      benchmark/property-access/project.yml

@ -15,3 +15,8 @@ Run the property benchmark from the repository root:
```bash
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.

@ -1,6 +1,7 @@
name: property_access_benchmark
mode: bin
optimize: 2
optimize: 3
lto: true
build-dir: build
output: property_access
sources:

Loading…
Cancel
Save