Skip to content

Commit

Permalink
commit for test
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Oct 9, 2023
1 parent f1ea1e6 commit b1ea59c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions scripts/benchmark_parallel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"
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"
2 changes: 1 addition & 1 deletion vm/vm-runtime/src/starcoin_vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit b1ea59c

Please sign in to comment.