Skip to content

Commit

Permalink
Changed number of storage items read to have better data
Browse files Browse the repository at this point in the history
  • Loading branch information
Itzik Grossman authored and Itzik Grossman committed Jun 26, 2023
1 parent 69bfc0a commit 1131b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ pub fn execute(deps: DepsMut, env: Env, info: MessageInfo, msg: ExecuteMsg) -> S
ExecuteMsg::Noop {} => Ok(()),
ExecuteMsg::BenchCPU {} => do_cpu_loop(5000),
ExecuteMsg::BenchReadStorage {} => bench_read_storage_same_key(deps, 100),
ExecuteMsg::BenchWriteStorage {} => bench_write_storage_different_key(deps, 100),
ExecuteMsg::BenchReadStorageMultipleKeys {} => bench_read_storage_different_key(deps, 100),
ExecuteMsg::BenchWriteStorage {} => bench_write_storage_different_key(deps, 10000),
ExecuteMsg::BenchReadStorageMultipleKeys {} => bench_read_storage_different_key(deps, 10000),
ExecuteMsg::BenchAllocate {} => do_allocate_large_memory(),
// start with running large item bench once, otherwise cache will skew performance numbers
ExecuteMsg::BenchWriteLargeItemToStorage { .. } => bench_write_large_storage_key(deps, 1),
Expand Down
Binary file modified x/compute/internal/keeper/testdata/bench_contract.wasm
Binary file not shown.

0 comments on commit 1131b6a

Please sign in to comment.