Skip to content

build(libobs): instrument the libobs build phases for the module-cache baseline #3257

Open

Description

@zackees

Scope

Extend the hybrid-build benchmark so it records configure, per-group compile time (from .ninja_log), zccache hit rate, link, Corrosion and oracle build.rs time. Cover five edit cases: one .c.h, libobs.pch.h, a ported .json, a Rust crate, and no change.

Acceptance criteria

docs/rust-port/benchmarks/libobs-modules-baseline.json has 3 samples per case on Linux and one on Windows and macOS (through cmake/cross). It is the "before" for every sibling.

RED then GREEN where a check applies; record before and after build times. Parent: #3256.

Activity

  1. added
    infra
    P2
    size:M
    on Oct 31, 2026
  2. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    /ready
    Concrete scope and acceptance criteria, with no dependencies. It is the first step of #3256: every sibling measures against this baseline.

  3. added
    ready
    on Oct 31, 2026
  4. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    Claiming: #3257

    1. rust/tools/benchmarks/libobs_build_phases.py (uv script): configures a libobs-only tree, then records configure, build wall/CPU, per-unity-group compile time from .ninja_log, the zccache hit rate, link, the Corrosion/cargo step and the oracle build.rs time, for the five edit cases (.c.h, libobs.pch.h, a ported .json, a Rust crate, no change). Edits are applied and reverted in place.
    2. A ci/ unit test for the pure parts (.ninja_log parsing, group attribution, case table).
    3. docs/rust-port/benchmarks/libobs-modules-baseline.json: 3 Linux samples per case. Windows and macOS through cmake/cross follow in the same PR if the cross toolchains run here, or are noted as missing.
      First PR today.
  5. zackees commented on Nov 1, 2026

    @zackees
    MemberAuthor

    Blocked: the Linux part landed in #3294 (3 samples per case in docs/rust-port/benchmarks/libobs-modules-baseline.json). The Windows and macOS samples are still missing. The macOS sample needs a macOS host. The Windows one would come from the cmake/cross xwin build. Every other sub-issue of #3256 is closed, so this baseline is the only thing left on the tracker.

  6. added
    claim-blocked
    on Nov 1, 2026
  7. moved this from In progress to Blocked in obs-rust Multiviewon Nov 1, 2026
  8. removed
    claim-blocked
    on Nov 8, 2026
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

    P2infrareadysize:M

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions