File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,5 @@ heim = "0.0.5"
3737futures-preview = " 0.3.0-alpha.17"
3838raw-cpuid = " 6.1.0"
3939blake2s_simd = " 0.5.6"
40+ pretty_env_logger = " 0.3.1"
41+ log = " 0.4.8"
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ mod hash_fns;
77mod zigzag;
88
99fn main ( ) {
10+ pretty_env_logger:: init_timed ( ) ;
11+
1012 let zigzag_cmd = SubCommand :: with_name ( "zigzag" )
1113 . about ( "Run zigzag sealing" )
1214 . arg (
@@ -126,7 +128,6 @@ fn main() {
126128 Ok ( ( ) )
127129 . and_then ( |_| {
128130 let layers = value_t ! ( m, "layers" , usize ) ?;
129-
130131 zigzag:: run ( zigzag:: RunOpts {
131132 bench : m. is_present ( "bench" ) ,
132133 bench_only : m. is_present ( "bench-only" ) ,
Original file line number Diff line number Diff line change 1- use cpu_time:: ProcessTime ;
21use std:: fs:: { File , OpenOptions } ;
32use std:: time:: { Duration , Instant } ;
43use std:: { io, u32} ;
54
65use bellperson:: Circuit ;
76use chrono:: Utc ;
7+ use cpu_time:: ProcessTime ;
88use failure:: bail;
99use fil_sapling_crypto:: jubjub:: JubjubBls12 ;
10+ use log:: info;
1011use memmap:: MmapMut ;
1112use memmap:: MmapOptions ;
1213use paired:: bls12_381:: Bls12 ;
@@ -542,6 +543,8 @@ pub fn run(opts: RunOpts) -> Result<(), failure::Error> {
542543 taper_layers : opts. taper_layers ,
543544 } ;
544545
546+ info ! ( "Benchy ZigZag: {:?}" , & params) ;
547+
545548 let report = match params. hasher . as_ref ( ) {
546549 "pedersen" => generate_report :: < PedersenHasher > ( params) ?,
547550 "sha256" => generate_report :: < Sha256Hasher > ( params) ?,
You can’t perform that action at this time.
0 commit comments