Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions noir-projects/noir-protocol-circuits/Nargo.template.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
members = [
"crates/types",
"crates/blob",
"crates/parity-base",
"crates/parity-lib",
"crates/parity-root",
Expand Down
8 changes: 8 additions & 0 deletions noir-projects/noir-protocol-circuits/crates/blob/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "blob"
type = "bin"
authors = [""]
compiler_version = ">=0.30.0"

[dependencies]
bigint = {tag = "v0.3.0", git = "https://github.com/noir-lang/noir-bignum" }
24 changes: 24 additions & 0 deletions noir-projects/noir-protocol-circuits/crates/blob/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Constraint counts

Current count: 428,240.

## Compile:

`time nargo compile`

## Get gate count:

Install bbup: `curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/master/barretenberg/cpp/installation/install | bash`
The version of bb compatible with nargo 0.33.0 is `bbup --version 0.48.0`

`time bb gates_mega_honk -b ./target/blob.json`

## Generate, then serve a new flamegraph, after compiling:

<!-- `~/packages/noir/noir-repo/target/release/noir-profiler gates-flamegraph --artifact-path ./target/blob.json --backend-path ~/.bb/bb --output ./flamegraph -- -h && python3 -m http.server --directory "./flamegraph" 3000` -->

`~/packages/noir/noir-repo/target/release/noir-profiler gates-flamegraph --artifact-path ./target/blob.json --backend-path ~/.bb/bb --output ./flamegraph --backend-gates-command "gates_mega_honk" -- -h && python3 -m http.server --directory "./flamegraph" 3000`

## To serve an existing flamegraph:

`python3 -m http.server --directory "./flamegraph" 3000`
Loading