Skip to content

Commit

Permalink
Remove batches_update feature
Browse files Browse the repository at this point in the history
Signed-off-by: grapebaba <[email protected]>
Closes: aptos-labs#536
  • Loading branch information
GrapeBaBa authored and aptos-bot committed Apr 21, 2022
1 parent 7beb34d commit 1cd21e6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 515 deletions.
31 changes: 0 additions & 31 deletions storage/scratchpad/benches/sparse_merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,37 +60,6 @@ impl Group {
BatchSize::LargeInput,
)
});
group.bench_function(BenchmarkId::new("batches_update", block_size), |b| {
b.iter_batched(
|| small_batches.clone(),
// return the resulting smt so the cost of Dropping it is not counted
|small_batches| -> SparseMerkleTree<AccountStateBlob> {
block
.smt
.batches_update(small_batches, &block.proof_reader)
.unwrap()
.1
},
BatchSize::LargeInput,
)
});
group.bench_function(
BenchmarkId::new("batches_update__flat_batch", block_size),
|b| {
b.iter_batched(
|| one_large_batch.clone(),
// return the resulting smt so the cost of Dropping it is not counted
|one_large_batch| -> SparseMerkleTree<AccountStateBlob> {
block
.smt
.batches_update(vec![one_large_batch], &block.proof_reader)
.unwrap()
.1
},
BatchSize::LargeInput,
)
},
);
group.bench_function(BenchmarkId::new("batch_update", block_size), |b| {
b.iter_batched(
|| one_large_batch.clone(),
Expand Down
Loading

0 comments on commit 1cd21e6

Please sign in to comment.