Skip to content

Commit 9c23552

Browse files
committed
some tests
1 parent 7596a65 commit 9c23552

File tree

7 files changed

+9
-3
lines changed

7 files changed

+9
-3
lines changed

prover/circuits/bench/constraints/blobdecompression/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ func main() {
1717
BlobBytes: make([]frontend.Variable, 32*4096),
1818
Dict: make([]frontend.Variable, 64*1024),
1919
MaxBlobPayloadNbBytes: blob.MaxUncompressedBytes,
20+
UseGkrMiMC: true,
2021
}
2122

22-
p := profile.Start(profile.WithPath(fmt.Sprintf("blobdecompression-%sK.pprof", formatFloat(blob.MaxUncompressedBytes/1024.0))))
23+
p := profile.Start(profile.WithPath(fmt.Sprintf("blobdecompression-gkrmimc-%sK.pprof", formatFloat(blob.MaxUncompressedBytes/1024.0))))
2324

2425
if _, err := frontend.Compile(ecc.BLS12_377.ScalarField(), scs.NewBuilder, &c, frontend.WithCapacity(1<<27)); err != nil {
2526
panic(err)
Binary file not shown.
Binary file not shown.

prover/circuits/bench/constraints/pi-interconnection/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ func main() {
2525
ExecutionMaxNbMsg: 16,
2626
L2MsgMerkleDepth: 5,
2727
L2MsgMaxNbMerkle: 10,
28+
MockKeccakWizard: true,
2829
}, dummy.Compile) // TODO The output of this bench is not worth much until we come up with proper Wizard compilation parameters.
2930

3031
var t test_utils.FakeTestingT
3132
assert.NoError(t, err)
3233

33-
p := profile.Start(profile.WithPath("pi-interconnection.pprof"))
34+
c.Circuit.UseGkrMimc = false
35+
p := profile.Start(profile.WithPath("pi-interconnection-nowizard-nogkr.pprof"))
3436
_, err = frontend.Compile(ecc.BLS12_377.ScalarField(), scs.NewBuilder, c.Circuit, frontend.WithCapacity(1<<27))
3537
p.Stop()
3638
assert.NoError(t, err)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
go run .
2+
telegram-file nohup.out
3+
shutdown

prover/circuits/bench/constraints/to-pdf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ find "." -type f -name "*.pprof" | while read -r file; do
99
# Extract filename without extension
1010
title="${filename%.*}"
1111

12-
cmd=$"go tool pprof -pdf "$file" > "$title.pprof.pdf""
12+
cmd=$"go tool pprof -pdf "$file" > "$title.pdf""
1313
echo $cmd
1414
eval $cmd
1515

0 commit comments

Comments
 (0)