Skip to content

Performance: compile-time targets and gate — hello-world ≤ 3 s warm, MiniWebApp ≤ 10 s, 400 statements per function in < 5 s, one-file edit rebuild < 25 % of full, spine gen-0 < 30 min with split-TU (script/bench-gate.php --compile, bin/compile.php, lib/Compiler.php) (re-#36224 slice 2, re-#36199) #36387

Description

@PurHur

Category

Foundation: · compiler throughput program · child of #36379

Why

Audit numbers (2026-09-01): hello-world 17 s warm (README says 6), MiniWebApp did not compile, Compiler::compile ~n^2.65 (200 statements = 412 s; #36224 "slice 1" landed with the note "still ~n^2.6"), no incremental builds (#36199 landed the module cache only), gen-0 ≈ 4.6 h. Nobody will iterate on a compiler that takes 17 s for echo. Compile time needs the same treatment runtime got: targets, a gate, history.

Deliverable

Done when

  • Gate committed with baseline; targets in the title met in the pinned image and recorded in docs/pages/bench.html
  • Scaling probe flat (≤ 15 ms/statement at 400); gen-0 chunked emit < 30 min wall on 8 cores with resume

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    IMPORTANTCritical patharea:compilerCompiler / CFG / JITenhancementNew feature or requestimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-0:FoundationPhase 0 – foundation & DevEx

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions