Skip to content

Commit

Permalink
Add forgotten crate
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Jun 21, 2024
1 parent 6d0e291 commit b8b8ce2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/tests/vm-benchmark/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "vm_benchmark"
name = "zksync_vm_benchmark"
version = "0.1.0"
edition.workspace = true
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion core/tests/vm-benchmark/benches/diy_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn main() {
}

if option_env!("PUSH_VM_BENCHMARKS_TO_PROMETHEUS").is_some() {
vm_benchmark::with_prometheus::with_prometheus(|| {
zksync_vm_benchmark::with_prometheus::with_prometheus(|| {
for (name, timings) in results {
for (i, timing) in timings.into_iter().enumerate() {
VM_BENCHMARK_METRICS.timing[&(name.clone(), i.to_string())].set(timing);
Expand Down
2 changes: 1 addition & 1 deletion core/tests/vm-benchmark/src/compare_iai_results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{
io::{BufRead, BufReader},
};

use vm_benchmark::parse_iai::parse_iai;
use zksync_vm_benchmark::parse_iai::parse_iai;

fn main() {
let [iai_before, iai_after, opcodes_before, opcodes_after] = std::env::args()
Expand Down
6 changes: 3 additions & 3 deletions core/tests/vm-benchmark/src/iai_results_to_prometheus.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use std::io::BufReader;

use vise::{Gauge, LabeledFamily, Metrics};
use vm_benchmark::parse_iai::IaiResult;
use zksync_vm_benchmark::parse_iai::IaiResult;

fn main() {
let results: Vec<IaiResult> =
vm_benchmark::parse_iai::parse_iai(BufReader::new(std::io::stdin())).collect();
zksync_vm_benchmark::parse_iai::parse_iai(BufReader::new(std::io::stdin())).collect();

vm_benchmark::with_prometheus::with_prometheus(|| {
zksync_vm_benchmark::with_prometheus::with_prometheus(|| {
for r in results {
VM_CACHEGRIND_METRICS.instructions[&r.name.clone()].set(r.instructions as f64);
VM_CACHEGRIND_METRICS.l1_accesses[&r.name.clone()].set(r.l1_accesses as f64);
Expand Down

0 comments on commit b8b8ce2

Please sign in to comment.