Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, we did check for regression of internal/circuits (number of constraints and number of wires).
But not for
std/
circuits.This PR closes #212 and adds
internal/stats
package.Enables registering "snippets", for example (see internal/stats/snippet.go):
will measure statistics for the provided snippet.
To regenerate statistics, in
internal/stats/generate
, rungo run main.go -s
.Running
go run main.go -v
will generate a csv output. For example, runninggo run main.go -v -run="ToBinary$"
will output:
Remaining:
note: Not urgent, but upcoming PR may have a "post compile" phase that reduce un-referenced constraints, which might make snippets stats less elegant.