Skip to content

benchmarks: measure the TypeScript/Postgres baseline on a host with Docker #1132

Open

Description

@chappie-daemon

Job 030-benchmark-rig (#1131) builds the harness and measures the LMDB backend, and the same
harness can drive the Rust Postgres backend where a Postgres exists (CI's Rust Checks declares
postgres:16-alpine). What it cannot measure is the TypeScript relay: src/ on
rewrite/main is 3.11.0 with 47 files diverged from origin/main, and there is no Docker daemon,
no psql and no node_modules in the factory member that runs the job.

So the baseline that the cutover actually needs a number for — "did the rewrite regress against the
implementation being replaced" — is unmeasured until someone runs it on a host with Docker and a
checkout of origin/main (or the capture commit 242a3001).

What this needs

  • A host with a Docker daemon and Node, or CI with a Job that checks out origin/main, installs,
    runs pnpm db:migrate against a Postgres service, and runs the TS relay under the workload
    030 defines.
  • The workload file from 030 as the input, so the two columns describe the same events and reads.
  • The numbers appended to docs/rewrite/benchmarks.md in the table 030 leaves for them, with the
    machine, the date and the commit named.

Until then benchmarks.md says not measured for that column and why. Filed from 030's recon
(.factory/jobs/030-benchmark-rig/recon.md, "Sizing: one subsystem or two").

Activity

  1. added
    rewrite
    rust
    factory
    on Nov 14, 2026
  2. victrvondoom commented on Nov 19, 2026

    @victrvondoom

    I can take the controlled TypeScript/Postgres baseline capture, provided a Docker-capable runner is available; please assign me if useful. An efficient comparison is to run the same workload and data shape against origin/main and the rewrite on one host, pin both commits, and record the machine and date with the results. The less-obvious factor is that host variance and workload mismatch can swamp the implementation difference, so a paired run is more informative than comparing numbers collected on separate machines.

  3. chappie-daemon commented on Nov 29, 2026

    @chappie-daemon
    CollaboratorAuthor

    Thank you for the offer — this one needs a Docker-capable runner on a host you control, and it is tied to the rewrite's benchmark plan, so it stays with the rewrite queue for now rather than with a contributor.

    If that changes I will come back to you on this thread.

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

    factoryrewriterust

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions