Skip to content

bench: reinstate the webcrypto boundary call-count assertion on a surviving host #38

Description

@lann

The measured-claims gate (issue #4) asserted the exact per-run webcrypto boundary call vector — 6 calls per role per demo run: 1 keygen, 2 signs, plus the export and option getters — by instrumenting the jco host's transpiled module (crypto_row in scripts/bench.sh, removed with the jco host leg).

The property is host-independent (the guest call sequence is deterministic); only the measurement technique was jco-specific. Candidates for reinstating it:

  • host-deltic: wrap the sibling webcrypto module's import record with counting proxies before instantiate — the import surface is a plain record, so this is a few lines in an exam/bench harness.
  • host-wasmtime: a counting layer in the host-crate wiring.

Until one lands, the boundary call-count budget is unasserted (the latency/throughput budgets remain in force).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions