Skip to content

Commit eb2fffa

Browse files
committed
benchmarks: add README pointing at the shared matrix in SmartString
One shared 25-cell matrix covers both libraries since SmartArray's hot paths end in SmartString output. The README says where the results, scripts, and workflow live and how to re-run them.
1 parent 4adf93f commit eb2fffa

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

benchmarks/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Benchmarks
2+
3+
SmartArray's speed benchmarks live in the SmartString repository: one shared
4+
matrix covers both libraries, since SmartArray's hot paths (field access,
5+
iteration) end in SmartString output.
6+
7+
In [interactivetools-com/SmartString](https://github.com/interactivetools-com/SmartString):
8+
9+
- **Results**: `.github/scripts/speed-results.md` - SmartArray tests have
10+
`arr-` prefixed ids (property access, `get()` vs property, foreach iteration)
11+
- **Scripts**: `.github/scripts/speed-probe.php` (per-cell measurements) and
12+
`speed-merge.php` (combines cells into the results grid)
13+
- **Workflow**: `.github/workflows/speed-matrix.yml` - dispatch it from the
14+
Actions tab to re-run; 25 cells (PHP 8.1-8.5 x linux-x64/linux-arm/
15+
windows-x64/macos-x64/macos-arm)

0 commit comments

Comments
 (0)