Skip to content

M0.1 Benchmark: WASM-SIMD secp256k1 verify throughput in Web Workers #2

@melvincarvalho

Description

@melvincarvalho

Part of #1 (M0). This is the single most important number in the project.

Goal

Measure ECDSA and Schnorr verifications/sec using a WASM-compiled libsecp256k1, single-core and scaled across N Web Workers, on real signatures pulled from mainnet blocks.

Why

Whether full validation is hours or days hinges on this. The engine's current crypto is pure JS (~20-100x too slow); the node needs WASM secp. Everything downstream is speculative until this is measured.

Benchmark / acceptance

  • Report verifies/sec/core (ECDSA and Schnorr), with and without WASM SIMD.
  • Report total throughput scaling 1..N workers (near-linear?).
  • Report the x-factor vs native libsecp on the same machine.
  • Use real signatures from downloaded blocks, not synthetic.
  • Confirm: >= ~10k verifies/sec/core in WASM, scaling roughly with core count.

Notes

Use an existing WASM build of libsecp256k1. Output feeds M0.5's revised time model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions