Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Apr 8, 2024
1 parent 7cd8da4 commit 0d8041e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/bench/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn variant_list() -> BenchResult {
}

#[bench(raw)]
fn nns_manage_neuron() -> BenchResult {
fn nns() -> BenchResult {
use candid_parser::utils::CandidSource;
let mut config = DecoderConfig::new();
config.set_decoding_quota(COST).set_skipping_quota(SKIP);
Expand Down
4 changes: 2 additions & 2 deletions rust/bench/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def print_table(data, base):
print(f"| {name} | {mem} | {encode} | {decode} |")

print()
parse = data["nns_manage_neuron"]["scopes"]["0. Parsing"]["instructions"]
base_parse = base["nns_manage_neuron"]["scopes"]["0. Parsing"]["instructions"]
parse = data["nns"]["scopes"]["0. Parsing"]["instructions"]
base_parse = base["nns"]["scopes"]["0. Parsing"]["instructions"]
print(f"* Parser cost: {display_diff(parse, base_parse)}")
extra = data["extra_args"]["total"]["instructions"]
base_extra = base["extra_args"]["total"]["instructions"]
Expand Down

0 comments on commit 0d8041e

Please sign in to comment.