Skip to content

docs(benchmarks): add the Benchmarks section with the PHP ORM page - #10

Merged
roxblnfk merged 8 commits into
masterfrom
feat/orm-benchmarks
Dec 2, 2026
Merged

roxblnfk merged 8 commits into
masterfrom
feat/orm-benchmarks

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Dec 2, 2026

Copy link
Copy Markdown
Member

A new top-level Benchmarks section (EN and RU). ORM is its first page; other benchmarks can join it later.

The ORM page renders the runs of php-testo/benchmarks-orm, one file per release in data/benchmarks/orm/:

  • the history of runs: any earlier run opens from the selector or the trend chart, and the URL keeps it (?run=1.2.0);
  • the metadata of the run: release, date, PHP, commit, workflow run, the versions under test and which changed since the previous run, and the machine and database server of each database;
  • per database: an overall ranking (geometric mean of the ratios to PDO), the scenario matrix with a heat scale and a toggle between ratios and times, a head-to-head of two ORMs, one ORM across databases, memory, and the trend over runs.

New runs arrive through the Publish workflow of benchmarks-orm (php-testo/benchmarks-orm#12): it validates each file against its schema and opens a PR here, or pushes directly once that is switched on. orm-benchmarks.data.ts also fails the build on a file the page can't render.

The first run (1.0.0.json) comes from the Benchmarks workflow on the branch of php-testo/benchmarks-orm#12.

🤖 Generated with Claude Code

The page renders the runs of php-testo/benchmarks-orm: its Publish workflow
adds one file per release to data/benchmarks/orm/. Any run can be opened from
the history, with its metadata, the versions under test and what changed since
the previous run; per database, an overall ranking, the scenario matrix
relative to PDO, a head-to-head of two ORMs, one ORM across databases, memory
and the trend over runs.

The data loader fails the build on a file the page can't render.

Assisted-By: Claude Opus 5.5
ORM is its first page; the section's index lists the benchmarks, so others
can join it later.

Assisted-By: Claude Opus 5.5
Measured by the Benchmarks workflow of php-testo/benchmarks-orm on the branch
that adds the publishing; later runs arrive through its Publish workflow.

Assisted-By: Claude Opus 5.5
- Hovering a scenario explains what it does and how it is measured; hovering a
  result shows its time, spread, ratio and peak memory.
- The memory chart draws PDO as a dashed line through the bars.
- The page lifts its width limit: tables take the width of their content, the
  prose keeps its reading width and the charts stop at 960px.

Assisted-By: Claude Opus 5.5
The site caps the doc content at 900px with !important, and past 1440px
VitePress centers the layout: both kept the tables narrow.

Assisted-By: Claude Opus 5.5
…ing the page

The page keeps the width of the other docs; each table gets an Expand button
that lays it over the page at the width of its content. Esc or the button
closes it.

Assisted-By: Claude Opus 5.5
@roxblnfk
roxblnfk merged commit 831c0e7 into master Dec 2, 2026
@roxblnfk
roxblnfk deleted the feat/orm-benchmarks branch December 2, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant