Skip to content

Commit

Permalink
rename scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejdfinity committed Jan 11, 2025
1 parent 5686004 commit 6abf064
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
22 changes: 11 additions & 11 deletions rs/ledger_suite/icrc1/ledger/canbench_results/canbench_u256.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
benches:
bench_icrc1_transfers:
total:
instructions: 58832813883
instructions: 58832813772
heap_increase: 271
stable_memory_increase: 256
scopes:
approvals:
icrc1_transfer:
instructions: 13635001695
heap_increase: 43
stable_memory_increase: 0
icrc2_approve:
instructions: 20413485760
heap_increase: 41
stable_memory_increase: 128
icrc2_transfer_from:
instructions: 24042619927
heap_increase: 5
stable_memory_increase: 0
icrc3_get_blocks:
instructions: 7877258
heap_increase: 0
Expand All @@ -21,16 +29,8 @@ benches:
instructions: 149556765
heap_increase: 129
stable_memory_increase: 128
transfers:
instructions: 13635001695
heap_increase: 43
stable_memory_increase: 0
transfers_from:
instructions: 24042619927
heap_increase: 5
stable_memory_increase: 0
upgrade:
instructions: 504336032
instructions: 504335921
heap_increase: 182
stable_memory_increase: 128
bench_upgrade_baseline:
Expand Down
22 changes: 11 additions & 11 deletions rs/ledger_suite/icrc1/ledger/canbench_results/canbench_u64.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
benches:
bench_icrc1_transfers:
total:
instructions: 56837536044
instructions: 56837535933
heap_increase: 271
stable_memory_increase: 256
scopes:
approvals:
icrc1_transfer:
instructions: 13071791984
heap_increase: 42
stable_memory_increase: 0
icrc2_approve:
instructions: 19627513485
heap_increase: 29
stable_memory_increase: 128
icrc2_transfer_from:
instructions: 23404082941
heap_increase: 18
stable_memory_increase: 0
icrc3_get_blocks:
instructions: 7540214
heap_increase: 0
Expand All @@ -21,16 +29,8 @@ benches:
instructions: 149315334
heap_increase: 129
stable_memory_increase: 128
transfers:
instructions: 13071791984
heap_increase: 42
stable_memory_increase: 0
transfers_from:
instructions: 23404082941
heap_increase: 18
stable_memory_increase: 0
upgrade:
instructions: 502452097
instructions: 502451986
heap_increase: 182
stable_memory_increase: 128
bench_upgrade_baseline:
Expand Down
6 changes: 3 additions & 3 deletions rs/ledger_suite/icrc1/ledger/src/benches/benches_u256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn bench_icrc1_transfers() -> BenchResult {

canbench_rs::bench_fn(|| {
{
let _p = canbench_rs::bench_scope("transfers");
let _p = canbench_rs::bench_scope("icrc1_transfer");
for i in 0..NUM_TRANSFERS {
let transfer = TransferArg {
from_subaccount: account_with_tokens.subaccount,
Expand All @@ -51,7 +51,7 @@ fn bench_icrc1_transfers() -> BenchResult {
assert_has_num_balances(NUM_TRANSFERS + 2);
}
{
let _p = canbench_rs::bench_scope("approvals");
let _p = canbench_rs::bench_scope("icrc2_approve");
for i in 0..NUM_APPROVALS {
let approve = ApproveArgs {
from_subaccount: account_with_tokens.subaccount,
Expand All @@ -72,7 +72,7 @@ fn bench_icrc1_transfers() -> BenchResult {
}
}
{
let _p = canbench_rs::bench_scope("transfers_from");
let _p = canbench_rs::bench_scope("icrc2_transfer_from");
for i in 0..NUM_TRANSFERS_FROM {
let spender = Account {
owner: max_length_principal(i),
Expand Down
6 changes: 3 additions & 3 deletions rs/ledger_suite/icrc1/ledger/src/benches/benches_u64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn bench_icrc1_transfers() -> BenchResult {

canbench_rs::bench_fn(|| {
{
let _p = canbench_rs::bench_scope("transfers");
let _p = canbench_rs::bench_scope("icrc1_transfer");
for i in 0..NUM_TRANSFERS {
let transfer = TransferArg {
from_subaccount: account_with_tokens.subaccount,
Expand All @@ -50,7 +50,7 @@ fn bench_icrc1_transfers() -> BenchResult {
assert_has_num_balances(NUM_TRANSFERS + 2);
}
{
let _p = canbench_rs::bench_scope("approvals");
let _p = canbench_rs::bench_scope("icrc2_approve");
for i in 0..NUM_APPROVALS {
let approve = ApproveArgs {
from_subaccount: account_with_tokens.subaccount,
Expand All @@ -71,7 +71,7 @@ fn bench_icrc1_transfers() -> BenchResult {
}
}
{
let _p = canbench_rs::bench_scope("transfers_from");
let _p = canbench_rs::bench_scope("icrc2_transfer_from");
for i in 0..NUM_TRANSFERS_FROM {
let spender = Account {
owner: max_length_principal(i),
Expand Down

0 comments on commit 6abf064

Please sign in to comment.