perf: benchmark release builds with O3 and LTO

master
韩天峰 5 days 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 ```bash
php benchmark/property-access/run.php 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 name: property_access_benchmark
mode: bin mode: bin
optimize: 2 optimize: 3
lto: true
build-dir: build build-dir: build
output: property_access output: property_access
sources: sources:

Loading…
Cancel
Save