feat!: constant inputs for blackbox#7222
Conversation
|
I've pushed a commit which removes the trait bounds being applied to the various struct definitions as it's generally good practice to avoid these unless absolutely necessary and apply the bounds to impls instead. |
Changes to circuit sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
Benchmark resultsMetrics with a significant change:
Detailed resultsAll benchmarks are run on txs on the This benchmark source data is available in JSON format on S3 here. Proof generationEach column represents the number of threads used in proof generation.
L2 block published to L1Each column represents the number of txs on an L2 block published to L1.
L2 chain processingEach column represents the number of blocks on the L2 chain where each block has 8 txs.
Circuits statsStats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.
Stats on running time collected for app circuits
AVM SimulationTime to simulate various public functions in the AVM.
Public DB AccessTime to access various public DBs.
Tree insertion statsThe duration to insert a fixed batch of leaves into each tree type.
MiscellaneousTransaction sizes based on how many contract classes are registered in the tx.
Transaction size based on fee payment method | Metric | | |
There was a problem hiding this comment.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'C++ Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.05.
| Benchmark suite | Current: c3f874b | Previous: 3b3af21 | Ratio |
|---|---|---|---|
nativeconstruct_proof_ultrahonk_power_of_2/20 |
5572.190493000008 ms/iter |
4750.089591999995 ms/iter |
1.17 |
wasmconstruct_proof_ultrahonk_power_of_2/20 |
16563.66839 ms/iter |
14558.674097999998 ms/iter |
1.14 |
This comment was automatically generated by workflow using github-action-benchmark.
CC: @ludamad @codygunton
|
Looks good, shall we merge this on monday so it can be included in the Tuesday release? We'll be able to immediately sync out to Noir then. |
|
We've got a release tomorrow so merging this now. |
This PR allows to use constant values for blackbox inputs.
Only MultiScalarMul is currently handling constant input, so it will fail if constant inputs are used for any other blackboxes. Noir does ensure that other blackboxes functions do not use constant inputs in this PR.
I will make a follow-up PR once this one is merged to have more blackbox functions using constant inputs.