added tracer for logging

This commit is contained in:
Manish Kumar 2024-03-12 12:25:00 +05:30
parent e2701150c0
commit 9d6723bf03
3 changed files with 5 additions and 2 deletions

View File

@ -12,4 +12,4 @@ echo "HASH = $ZKBENCH_HASH_TYPE"
echo "Input Size (Bytes) = $ZKBENCH_INPUT_SIZE_BYTES" echo "Input Size (Bytes) = $ZKBENCH_INPUT_SIZE_BYTES"
# Run the benchmarks # Run the benchmarks
./target/release/bench-script $ZKBENCH_HASH_TYPE $ZKBENCH_INPUT_SIZE_BYTES RUST_LOG=info ./target/release/bench-script $ZKBENCH_HASH_TYPE $ZKBENCH_INPUT_SIZE_BYTES

View File

@ -13,7 +13,7 @@ use crate::benches::{
blake3::blake3_benchmark, blake3::blake3_benchmark,
poseidon2::poseidon2_benchmark poseidon2::poseidon2_benchmark
}; };
use sp1_core::utils;
use std::process; use std::process;
fn main() { fn main() {
@ -28,6 +28,9 @@ fn main() {
let bench_type = &args[1]; let bench_type = &args[1];
let size = args[2].parse::<usize>().unwrap(); let size = args[2].parse::<usize>().unwrap();
// Setup a tracer for logging.
utils::setup_logger();
match bench_type.as_str() { match bench_type.as_str() {
"sha256" => { "sha256" => {