Skip to content

Run the final old-vs-new benchmark and the default-flip decision #727

Open

Description

@pithead-developer

What's the problem

The port is only worth shipping if it measurably beats the current code and passes everything the current code passes. The default must not flip on feel.

What it impacts

Every rig and the appliance on the release after the flip, and the cost of maintaining two implementations.

How I found it

The agreed method in #669 and the benchmark pattern from pithead#3811 (interleaved repetitions, identical commit except the component, a control arm, the decision rule written before the run).

How important is it

Gate for the whole tracker. Blocked until the owner writes the threshold.

Acceptance criteria

  • Owner action: before the final run, the owner writes the saving threshold that justifies flipping the default, in this issue.
  • The Measure a baseline and a control arm for the RigForge refresh tick and verbs before porting #704 method is rerun at one head covering the tick, both servers and the verbs, with at least 3 interleaved repetitions per arm (A current, B current plus control arm, C Rust), warm-up discarded, reported as measured including null or negative results. The report is class-level only: no hostnames, addresses or paths (make lint-topology passes).
  • At that same head, make test-suite passes unchanged in default mode and with RIGFORGE_IMPL=rust, the contract fixtures byte-match, and make check passes in the author's checkout and in a clean worktree.
  • The ledger states per verb and component native or fallback, and whether python3 and jq remain runtime dependencies.
  • Pithead confirms the image carries the binary (Paired Pithead issue: carry the prebuilt RigForge binary in the image #710); remote upgrade and rollback were exercised from a tag containing it, or the ledger records not run; the owner has run make e2e-real and make e2e-pithead in rust mode, or the ledger records them as not run.
  • If the threshold is met, one PR flips the RIGFORGE_IMPL default to rust; if not, the tracker closes with the results recorded.

Possible solutions

  • Keep the flip as its own PR so it is revertible by a one-line change.
  • Keep the Bash dispatcher permanently for hardware-bound verbs the port did not cover.
  • Unknown: the owner's threshold; this issue cannot set it.

Activity

  1. added this to the v1.20.0 milestone on Nov 17, 2026
  2. added
    testing
    performance
    blocked
    P4-code-health
    size:M
    on Nov 17, 2026
  3. added a commit that references this issue on Nov 23, 2026
  4. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Blocked by the port issues #704, #709, #711, #712, #713, #717, #719, #720 and #725 (native links present).

  5. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Owner decision (2026-11-27) on the flip threshold: switch RigForge's default to the Rust implementation only if CPU per refresh tick drops at least 2x with identical output and no test-suite regressions. This issue now waits only on the ports.

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

    P4-code-healthblockedperformancesize:Mtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions