Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
save electric power
Browse files Browse the repository at this point in the history
  • Loading branch information
ashWhiteHat committed Jan 24, 2022
1 parent 1c29a01 commit ffc1077
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/gh-actions-prover-benches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ jobs:
ssh prover "bash -s" -- < .github/proverCiScripts/getSysstat.sh "${{ env.PR_NUMBER }}"
- run: .github/proverCiScripts/shutdownProver.sh
shell: bash

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/target
*.png
.DS_Store

# flame grahp
*_flamegraph.svg

# pprof
*_profile.pb
13 changes: 5 additions & 8 deletions circuit-benchmarks/src/evm_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@ impl<F: FieldExt> Circuit<F> for TestCircuit<F> {
mod evm_circ_benches {
use super::*;
use ark_std::{end_timer, start_timer};
use halo2::plonk::{create_proof, keygen_pk, keygen_vk};
use halo2::{
plonk::verify_proof,
plonk::{create_proof, keygen_pk, keygen_vk, verify_proof},
poly::commitment::Setup,
transcript::{Blake2bRead, Blake2bWrite, Challenge255},
};
use pairing::bn256::Bn256;
use pairing::bn256::Fr;
use pairing::bn256::{Bn256, Fr};
use rand::SeedableRng;
use rand_xorshift::XorShiftRng;
use std::env::var;
use std::fs::{self, File};
use std::{env::var, fs::File};
use {pprof::protos::Message, std::io::Write};

#[cfg_attr(not(feature = "benches"), ignore)]
Expand Down Expand Up @@ -120,10 +117,10 @@ mod evm_circ_benches {
end_timer!(start2);

if let Ok(report) = guard.report().build() {
let file = File::create("proof_flamegraph.svg").unwrap();
let file = File::create("create_proof_flamegraph.svg").unwrap();
report.flamegraph(file).unwrap();

let mut file = File::create("proof_profile.pb").unwrap();
let mut file = File::create("create_proof_profile.pb").unwrap();
let profile = report.pprof().unwrap();

let mut content = Vec::new();
Expand Down

0 comments on commit ffc1077

Please sign in to comment.