Skip to content

Commit

Permalink
[diemdb-benchmark/executor-benchmark] refactor exec/diemdb benchmarks…
Browse files Browse the repository at this point in the history
… to store real txn data in db

Closes: aptos-labs#9247
  • Loading branch information
lightmark authored and bors-libra committed Sep 24, 2021
1 parent 5ff5547 commit 19d4c75
Show file tree
Hide file tree
Showing 11 changed files with 607 additions and 543 deletions.
7 changes: 5 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions execution/executor-benchmark/benches/executor_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

use criterion::{criterion_group, criterion_main, measurement::Measurement, BatchSize, Criterion};
use executor_benchmark::{
create_storage_service_and_executor, TransactionExecutor, TransactionGenerator,
create_storage_service_and_executor, transaction_executor::TransactionExecutor,
transaction_generator::TransactionGenerator,
};
use std::sync::Arc;

Expand All @@ -27,7 +28,7 @@ fn executor_benchmark<M: Measurement + 'static>(c: &mut Criterion<M>) {
let mut generator = TransactionGenerator::new(genesis_key, NUM_ACCOUNTS);
let (commit_tx, _commit_rx) = std::sync::mpsc::channel();

let mut executor = TransactionExecutor::new(executor, parent_block_id, commit_tx);
let mut executor = TransactionExecutor::new(executor, parent_block_id, Some(commit_tx));
let txns = generator.gen_account_creations(SMALL_BLOCK_SIZE);
for txn_block in txns {
executor.execute_block(txn_block);
Expand Down
Loading

0 comments on commit 19d4c75

Please sign in to comment.