Conversation
Benchmark resultsNo metrics with a significant change found. Detailed resultsAll benchmarks are run on txs on the This benchmark source data is available in JSON format on S3 here. Values are compared against data from master at commit 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 16 txs.
Circuits statsStats on running time and I/O sizes collected for every circuit run across all benchmarks.
Tree insertion statsThe duration to insert a fixed batch of leaves into each tree type.
MiscellaneousTransaction sizes based on how many contracts are deployed in the tx.
Transaction processing duration by data writes.
|
| @@ -1,4 +1,5 @@ | |||
| #include "ultra_circuit_builder.hpp" | |||
| #include "barretenberg/proof_system/circuit_builder/ultra_circuit_builder.hpp" | |||
There was a problem hiding this comment.
It feels very weird that the tests for ultra are not in the same directory as the builder. Is it because you didn't want to create a circular dependency?
| @@ -1,4 +1,5 @@ | |||
| #include "standard_circuit_builder.hpp" | |||
| #include "barretenberg/proof_system/circuit_builder/standard_circuit_builder.hpp" | |||
There was a problem hiding this comment.
Feels weird that the tests for builders are here and not in the same folder as the implementation
| }; | ||
|
|
||
| template <typename Builder> | ||
| void CircuitChecker::populate_values( |
There was a problem hiding this comment.
There is no description what this function does
There was a problem hiding this comment.
All of the descriptions are in the header. Cody has mentioned that this is better for doxygen for some reason
| return result; | ||
| }; | ||
|
|
||
| template <typename Relation> bool CircuitChecker::check_relation(auto& values, auto& params) |
There was a problem hiding this comment.
I'd add a description and mention that this only works for linearly independent relations
There was a problem hiding this comment.
Good point about the lin dep relations, will add a note to the descrip in the header
Rumata888
left a comment
There was a problem hiding this comment.
Everything looks good. The only thing that slightly bothers me is that the tests migrated to the circuit_checker folder. Feels unintuitive.
🤖 I have created a release *beep* *boop* --- <details><summary>aztec-package: 0.26.4</summary> ## [0.26.4](aztec-package-v0.26.3...aztec-package-v0.26.4) (2024-03-06) ### Miscellaneous * **aztec-package:** Synchronize aztec-packages versions </details> <details><summary>barretenberg.js: 0.26.4</summary> ## [0.26.4](barretenberg.js-v0.26.3...barretenberg.js-v0.26.4) (2024-03-06) ### Miscellaneous * **barretenberg.js:** Synchronize aztec-packages versions </details> <details><summary>aztec-cli: 0.26.4</summary> ## [0.26.4](aztec-cli-v0.26.3...aztec-cli-v0.26.4) (2024-03-06) ### Miscellaneous * **aztec-cli:** Synchronize aztec-packages versions </details> <details><summary>aztec-packages: 0.26.4</summary> ## [0.26.4](aztec-packages-v0.26.3...aztec-packages-v0.26.4) (2024-03-06) ### Features * **avm:** ALU <--> MAIN inter table relation on intermediate registers copy ([#4945](#4945)) ([8708131](8708131)), closes [#4613](#4613) * Circuit checker class ([#4931](#4931)) ([4eba266](4eba266)) * Compute out hash in circuits [#4561](#4561) ([#4873](#4873)) ([06a9116](06a9116)) ### Bug Fixes * **ci:** Noir mirror base commit ([#4969](#4969)) ([546c666](546c666)) * Fix release ([#4994](#4994)) ([19a8728](19a8728)) ### Miscellaneous * Use public constructors where possible ([#4937](#4937)) ([225aad6](225aad6)) </details> <details><summary>barretenberg: 0.26.4</summary> ## [0.26.4](barretenberg-v0.26.3...barretenberg-v0.26.4) (2024-03-06) ### Features * **avm:** ALU <--> MAIN inter table relation on intermediate registers copy ([#4945](#4945)) ([8708131](8708131)), closes [#4613](#4613) * Circuit checker class ([#4931](#4931)) ([4eba266](4eba266)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- <details><summary>aztec-package: 0.26.4</summary> ## [0.26.4](AztecProtocol/aztec-packages@aztec-package-v0.26.3...aztec-package-v0.26.4) (2024-03-06) ### Miscellaneous * **aztec-package:** Synchronize aztec-packages versions </details> <details><summary>barretenberg.js: 0.26.4</summary> ## [0.26.4](AztecProtocol/aztec-packages@barretenberg.js-v0.26.3...barretenberg.js-v0.26.4) (2024-03-06) ### Miscellaneous * **barretenberg.js:** Synchronize aztec-packages versions </details> <details><summary>aztec-cli: 0.26.4</summary> ## [0.26.4](AztecProtocol/aztec-packages@aztec-cli-v0.26.3...aztec-cli-v0.26.4) (2024-03-06) ### Miscellaneous * **aztec-cli:** Synchronize aztec-packages versions </details> <details><summary>aztec-packages: 0.26.4</summary> ## [0.26.4](AztecProtocol/aztec-packages@aztec-packages-v0.26.3...aztec-packages-v0.26.4) (2024-03-06) ### Features * **avm:** ALU <--> MAIN inter table relation on intermediate registers copy ([#4945](AztecProtocol/aztec-packages#4945)) ([8708131](AztecProtocol/aztec-packages@8708131)), closes [#4613](AztecProtocol/aztec-packages#4613) * Circuit checker class ([#4931](AztecProtocol/aztec-packages#4931)) ([4eba266](AztecProtocol/aztec-packages@4eba266)) * Compute out hash in circuits [#4561](AztecProtocol/aztec-packages#4561) ([#4873](AztecProtocol/aztec-packages#4873)) ([06a9116](AztecProtocol/aztec-packages@06a9116)) ### Bug Fixes * **ci:** Noir mirror base commit ([#4969](AztecProtocol/aztec-packages#4969)) ([546c666](AztecProtocol/aztec-packages@546c666)) * Fix release ([#4994](AztecProtocol/aztec-packages#4994)) ([19a8728](AztecProtocol/aztec-packages@19a8728)) ### Miscellaneous * Use public constructors where possible ([#4937](AztecProtocol/aztec-packages#4937)) ([225aad6](AztecProtocol/aztec-packages@225aad6)) </details> <details><summary>barretenberg: 0.26.4</summary> ## [0.26.4](AztecProtocol/aztec-packages@barretenberg-v0.26.3...barretenberg-v0.26.4) (2024-03-06) ### Features * **avm:** ALU <--> MAIN inter table relation on intermediate registers copy ([#4945](AztecProtocol/aztec-packages#4945)) ([8708131](AztecProtocol/aztec-packages@8708131)), closes [#4613](AztecProtocol/aztec-packages#4613) * Circuit checker class ([#4931](AztecProtocol/aztec-packages#4931)) ([4eba266](AztecProtocol/aztec-packages@4eba266)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Moves the
check_circuitfunctionality to a single new class calledCircuitCheckerthat utilizes Relations instead of redefining the constraint algebra in the circuit builders.The initial motivation for this work was to update the check circuit functionality to handle the new block structure. I've decided to do a larger refactor because notions like Flavor and Relations that did not yet exist when check_circuit was originally implemented now allow for substantial simplification. The overall logic remains equivalent. Most of the file changes amount to
builder.check_circuit()-->CircuitChecker::check(builder).Note: the
CircuitChecker::check()method receives a const reference to a builder, makes a copy, finalizes that copy and performs checks on the result. It is thus guaranteed that the original circuit is unchanged so checks to this end have been removed from some tests.Closes AztecProtocol/barretenberg#885 (Update check circuit to handle block structure)
Closes AztecProtocol/barretenberg#806 (Use Relations for check circuit)