Skip to content

Commit

Permalink
close some log
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Oct 2, 2023
1 parent 13a646a commit d103e58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 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=1000,10000,50000,100000
ACCOUNT_NUMS=2,10,100,1000,10000
TXN_NUMS=500000
ACCOUNT_NUMS=10000

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Linux
Expand Down Expand Up @@ -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"
eval RUST_LOG=info cargo run --release -p "starcoin-transaction-benchmarks" --features fuzzing -- --concurrency-level "8" --txn-nums "$TXN_NUMS" --account-nums="$ACCOUNT_NUMS"
4 changes: 2 additions & 2 deletions vm/e2e-tests/src/data_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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<Option<Vec<u8>>> {
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())
}
Expand Down

0 comments on commit d103e58

Please sign in to comment.