Repository navigation
Commit a90889c
committed
Refresh native-extension benchmark numbers
Re-measure the documented lexer/parser benchmarks on this branch (PHP 8.5.5,
current extension build) and replace the stale trunk/PHP-8.4.5 figures.
The parser native row drops from 108,354 QPS (15.45x) to 58,111 QPS (2.00x):
trunk's native parser returned a lazy wrapper, so the parse-only benchmark
never built the tree. This branch materializes the full WP_Parser_Node tree
eagerly, so the number now reflects producing a complete AST. The lexer pure-PHP
row rises (71,553 -> 178,409 QPS) thanks to the lexer optimizations on this branch,
narrowing the native lexer speedup to 2.00x.
Note the default-CLI (no JIT) methodology and that under opcache + tracing JIT
the native edge narrows further (lexer ~1.08x, parser ~1.13x).1 parent 8af0ce5 commit a90889c
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
| |||
0 commit comments