Skip to content

TypeScript prototype: reproducible TypeScript vs. Rust benchmark runner and comparison report #1840

Closed

Description

@JacobStephens2

This was generated by AI during triage.

Parent

#1831

What to build

Build a reproducible benchmark runner in the TypeScript prototype directory and publish an empirical comparison report in the research documentation directory comparing the TypeScript (bun build --compile) vertical slice against the equivalent Rust implementation across cold and incremental fresh-worktree typecheck, test, and bun build --compile wall-clock times, standalone binary size, code size, subprocess/signal ergonomics, discriminated-union state-machine exhaustiveness, full-stack Console velocity, and ADR-0017 Pickup model-checking speed, without modifying ADR-0001.

Acceptance criteria

  • A reproducible benchmark script in the TypeScript prototype directory measures cold and incremental tsc --noEmit, bun test, and bun build --compile wall-clock times in a fresh worktree, standalone executable size, and source line counts for the TypeScript prototype vs. the equivalent Rust slices, and records ADR-0017 model-check execution time.
  • A research report in the repository's research documentation directory presents the measured numbers alongside a concrete comparison of subprocess/signal handling in Bun vs. Rust, discriminated unions (satisfies never) vs. Rust enums (clippy::wildcard_enum_match_arm), full-stack CLI/Console/OpenAPI/Playwright type sharing vs. the Rust + Node split, and ADR-0017 model-checking in bun test vs. stateright.
  • Automated tests verify that the benchmark runner executes cleanly and that the research report is present and complete.
  • ADR-0001 is left unchanged so the Day shift can review the empirical report first.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions