-
Notifications
You must be signed in to change notification settings - Fork 857
Fix benchmarks #1646
Comments
Since StateCircuit uses the U16 table, it seems to me that the degree should have to be at least 16. Should the fix simply add a minimum default value for the DEGREE env similar to other tests? How are the benchmark tests triggered? Is it run individually passing in the DEGREE manually or using
|
That makes sense. Your suggestion would be a possible solution. Another solution that comes to my mind is to just check if DEGREE is >= 16 for the StateCircuit benchmark, and if not panic early with a message. Also the same process should be done for the other benchmakrs: check if the other circuits have a minimum degree, and either panic with a useful message when degree is lower, and/or set a default degree that is the minimum.
You can trigger them with this command from the
You can replace
|
Assign this task to @zemse |
### Description This PR aims to get the benchmark tests running. ### Issue Link #1646 ### Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Contents - Updates default degree in the benchmark tests ### Rationale [_design decisions and extended information_] ### How Has This Been Tested? ``` cargo test --release --features=benches bytecode cargo test --release --features=benches copy cargo test --release --features=benches evm cargo test --release --features=benches exp cargo test --release --features=benches mpt cargo test --release --features=benches keccak cargo test --release --features=benches pi cargo test --release --features=benches state cargo test --release --features=benches super cargo test --release --features=benches tx ```
In https://github.com/privacy-scaling-explorations/zkevm-circuits/tree/main/circuit-benchmarks/src we have a series of tests to build a proof of each subcircuit to get benchmark results.
These benchmarks have been broken for a while and need to be fixed.
Example:
The text was updated successfully, but these errors were encountered: