From ff5ddca2e03701bfddf47af7aa1d28c6b24781a4 Mon Sep 17 00:00:00 2001 From: Zara Date: Thu, 19 Nov 2026 21:46:19 +0000 Subject: [PATCH 1/8] test(zk-prover): measure a node's proving pipeline on secure-8192 Opt-in measurements (`MEASURE_RUN=1`, other gates per test, skipped otherwise) of the trBFV pipeline on secure-8192 at the committee in `MEASURE_COMMITTEE` (`small` by default, or `minimum`). Output lines (MEASURE, BB, STEP, PHASE, TOTAL, NOTE) are described in `tests/common/node_pipeline_measure.rs`. - One node's DKG proving: C0, C1, C2a/C2b, every C3, C4a/C4b as recipient and the node fold, with the C3 batch optionally proved through a node-sized task pool (`MEASURE_C3_POOL=1`) and the aggregator's `nodes_fold` timed (`MEASURE_NODES_FOLD=1`). - C3 Chonk stack size: the C3 chain for each app build in `MEASURE_C3_APPS`. - C3 throughput with 1, 2 and 4 concurrent proofs (`MEASURE_C3_CONCURRENCY=1`). - Threshold decryption: the node's C6, and with `MEASURE_AGGREGATOR=1` the C6 Chonk root and C7. - The aggregator's C5. Split from #2398. --- .../tests/common/node_pipeline_measure.rs | 811 ++++++++++++++++++ .../tests/node_pipeline_trbfv_measure.rs | 579 +++++++++++++ 2 files changed, 1390 insertions(+) create mode 100644 crates/zk/prover/tests/common/node_pipeline_measure.rs create mode 100644 crates/zk/prover/tests/node_pipeline_trbfv_measure.rs diff --git a/crates/zk/prover/tests/common/node_pipeline_measure.rs b/crates/zk/prover/tests/common/node_pipeline_measure.rs new file mode 100644 index 0000000000..41c1604cf2 --- /dev/null +++ b/crates/zk/prover/tests/common/node_pipeline_measure.rs @@ -0,0 +1,811 @@ +// SPDX-License-Identifier: LGPL-3.0-only +// +// This file is provided WITHOUT ANY WARRANTY; +// without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. + +//! Support for the per-node trBFV DKG pipeline measurement (`node_pipeline_trbfv_measure.rs`). +//! +//! Output lines: +//! - `MEASURE