Skip to content

zingolabs/analysis_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TL;DR Follow these steps to run a benchmark

  1. git clone zingolib and checkout the version you want to benchmark

  2. point ./Cargo.toml at it.

  3. symlink zcashd, zcash-cli, and lightwalletd to analysis_utils/regtest/bin/

  4. Follow the zingo-testutils README at docs/TEST-REGTEST.md to set up regtest mode in the version of the code that you want to benchmark.

  5. run: cargo nextest run $BENCHMARK

    $BENCHMARKS are marked as #[annotated_benchmark]s in:

./tests/benchmarks.rs

e.g.

keyowning_client_pu_false

So you can invoke that benchmark with:

cargo nextest run keyowning_client_pu_false

IMPORTANT NOTE: Benchmarks must be run individually. If they are run in parallel, they will compete for system resources

  1. Step 2. produces (or appends to a file in tests/times) named {ZINGOLIB_VERSION}_sync_duration_annotation.json

    The current set of supported tests are

    keyless_client_pu_false

    fullviewonly_client_pu_false

    keyowning_client_pu_false

    After running all three of the above tests, you can pass the output duration_annotation file to cargo run to produce a plot of different kinds of annotations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages