From d103e58a59664210124adc823d8d792d03f1263f Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Mon, 2 Oct 2023 14:13:57 +0800 Subject: [PATCH] close some log --- scripts/benchmark_parallel.sh | 6 +++--- vm/e2e-tests/src/data_store.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/benchmark_parallel.sh b/scripts/benchmark_parallel.sh index 5c15afe5a2..e302a679d7 100755 --- a/scripts/benchmark_parallel.sh +++ b/scripts/benchmark_parallel.sh @@ -3,8 +3,8 @@ #RUST_LOG=info cargo bench --features fuzzing -p 'starcoin-transaction-benchmarks' STARCOIN_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd .. && pwd)" -TXN_NUMS=1000,10000,50000,100000 -ACCOUNT_NUMS=2,10,100,1000,10000 +TXN_NUMS=500000 +ACCOUNT_NUMS=10000 if [[ "$OSTYPE" == "linux-gnu"* ]]; then # Linux @@ -39,4 +39,4 @@ IFS=',' power_of_two_str="${power_of_two_array[*]}" #echo "Power of two array: ${power_of_two_str[@]}" -eval RUST_LOG=info cargo run --release -p "starcoin-transaction-benchmarks" --features fuzzing -- --concurrency-level "$power_of_two_str" --txn-nums "$TXN_NUMS" --account-nums="$ACCOUNT_NUMS" \ No newline at end of file +eval RUST_LOG=info cargo run --release -p "starcoin-transaction-benchmarks" --features fuzzing -- --concurrency-level "8" --txn-nums "$TXN_NUMS" --account-nums="$ACCOUNT_NUMS" \ No newline at end of file diff --git a/vm/e2e-tests/src/data_store.rs b/vm/e2e-tests/src/data_store.rs index d2bf7d44bb..8d62b54409 100644 --- a/vm/e2e-tests/src/data_store.rs +++ b/vm/e2e-tests/src/data_store.rs @@ -46,7 +46,7 @@ impl FakeDataStore { /// Adds a [`WriteSet`] to this data store. pub fn add_write_set(&self, write_set: &WriteSet) { - println!("FakeDataStore::add_write_set | {:#?}", write_set); + //println!("FakeDataStore::add_write_set | {:#?}", write_set); let mut write_handle = self.state_data.write().expect("Panic for lock"); for (state_key, write_op) in write_set { @@ -101,7 +101,7 @@ impl FakeDataStore { // TODO: only the "sync" get is implemented impl StateView for FakeDataStore { fn get_state_value(&self, state_key: &StateKey) -> Result>> { - println!("StateView::get_state_value, state_key: {:#?}", state_key); + //println!("StateView::get_state_value, state_key: {:#?}", state_key); Ok(self.inner().get(state_key).cloned()) }