File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module worldcoin/gnark-mbu
22
33go 1.22.0
44
5- toolchain go1.22.2
5+ toolchain go1.23.3
66
77require (
88 github.com/consensys/gnark v0.8.0
Original file line number Diff line number Diff line change 77 "math/big"
88 "os"
99 "os/signal"
10+ "time"
1011
1112 "worldcoin/gnark-mbu/logging"
1213 "worldcoin/gnark-mbu/prover"
@@ -289,12 +290,20 @@ func main() {
289290 return fmt .Errorf ("invalid mode: %s" , mode )
290291 }
291292
292- logging .Logger ().Info ().Msg ("Reading proving system from file" )
293+ logging .Logger ().Info ().Msg ("Loading proving system from file" )
294+ start := time .Now ()
293295 ps , err := prover .ReadSystemFromFile (keys )
294296 if err != nil {
295297 return err
296298 }
297- logging .Logger ().Info ().Uint32 ("treeDepth" , ps .TreeDepth ).Uint32 ("batchSize" , ps .BatchSize ).Msg ("Read proving system" )
299+ duration := time .Since (start )
300+ logging .Logger ().
301+ Info ().
302+ Uint32 ("treeDepth" , ps .TreeDepth ).
303+ Uint32 ("batchSize" , ps .BatchSize ).
304+ Dur ("duration" , duration ).
305+ Msg ("Proving system loaded" )
306+
298307 config := server.Config {
299308 ProverAddress : context .String ("prover-address" ),
300309 MetricsAddress : context .String ("metrics-address" ),
You can’t perform that action at this time.
0 commit comments