From b1ea59c4693e0ef8142c27e24c892d78ea07c0de Mon Sep 17 00:00:00 2001 From: welbon Date: Mon, 9 Oct 2023 14:35:14 +0800 Subject: [PATCH] commit for test --- scripts/benchmark_parallel.sh | 8 ++++---- vm/vm-runtime/src/starcoin_vm.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/benchmark_parallel.sh b/scripts/benchmark_parallel.sh index 0f36e69bae..ddc1c8fd71 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=500000 -ACCOUNT_NUMS=100000 +TXN_NUMS=5000,10000,50000,100000 +ACCOUNT_NUMS=10000 if [[ "$OSTYPE" == "linux-gnu"* ]]; then # Linux @@ -26,7 +26,7 @@ else current_power=4 while (( current_power <= physical_cores )); do power_of_two_array+=($current_power) - current_power=$((current_power * 2)) + current_power=$((current_power << 1)) done if ! [[ " ${power_of_two_array[@]} " =~ " ${physical_cores} " ]]; then @@ -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 "32" --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 "$power_of_two_str" --txn-nums "$TXN_NUMS" --account-nums="$ACCOUNT_NUMS" \ No newline at end of file diff --git a/vm/vm-runtime/src/starcoin_vm.rs b/vm/vm-runtime/src/starcoin_vm.rs index 2c2d6c6097..8643de136d 100644 --- a/vm/vm-runtime/src/starcoin_vm.rs +++ b/vm/vm-runtime/src/starcoin_vm.rs @@ -1615,7 +1615,7 @@ impl VMAdapter for StarcoinVM { (vm_status, output, Some(sender)) } PreprocessedTransaction::BlockMetadata(block_meta) => { - println!("YSG BlockMetadata"); + // println!("YSG BlockMetadata"); let (vm_status, output) = match self.process_block_metadata(data_cache, block_meta.clone()) { Ok(output) => (VMStatus::Executed, output),