Block-STM: Scaling Blockchain Execution by Turning Ordering Curse to a Performance Blessing
Abstract
Block-STM Getting Started Guide This repository implements and benchmarks Block-STM and other baselines for the paper Block-STM: Scaling Blockchain Execution by Turning Ordering Curse to a Performance Blessing. The implementation of Block-STM has been merged on the main branch of the Aptos blockchain and the Diem blockchain open source codebase. Branches block_stm and aptos implement and benchmark Block-STM with Diem and Aptos peer-to-peer transactions, respectively. Similarly, branches bohm and litm implement and benchmark Bohm and LiTM with Diem peer-to-peer transactions, respectively. Step-by-Step Instructions First, checkout to the corresponding branch using git checkout, then install the dependencies using ./scripts/dev_setup.sh Run Block-STM with Diem p2p txn: cd diem-move/diem-transaction-benchmarks/src cargo run --release main Use taskset commands to run experiments with different threads number. For example, in step 5, run taskset -c 0-15 cargo run --release main is to use CPU core 0-15 to run Block-STM. The TPS results will show after the execution. Figure 3, 4 and 5 in the paper contains TPS results of Block-STM with Diem p2p transactions under different account number, transaction number, and number of thread. Set parameters (number of accounts/transactions/warmup-runs/runs) in diem-move/diem-transaction-benchmarks/src/main.rs. let acts = [2, 10, 100, 1000, 10000]; let txns = [1000, 10000]; let num_warmups = 2; let num_runs = 10; Run sequential baseline: cd diem-move/diem-transaction-benchmarks/benches cargo bench peer_to_peer The TPS results will show after the execution. Figure 3, 4 and 5 in the paper contains TPS results of sequential execution with Diem p2p transactions under different account number and transaction number. Set parameters (number of accounts/transactions) in diem-move/diem-transaction-benchmarks/src/transactions.rs. /// The number of accounts created by default. pub const DEFAULT_NUM_ACCOUNTS: usize = 100; /// The number of transactions created by default. pub const DEFAULT_NUM_TRANSACTIONS: usize = 1000; Run Bohm: cd diem-move/diem-transaction-benchmarks/src cargo run --release main Use taskset commands to run experiments with different threads number. Set parameters in diem-move/diem-transaction-benchmarks/src/main.rs. The TPS results will show after the execution, as the numbers corresponding to “AVG TPS (total execution)”. Figure 3 in the paper contains TPS results of Bohm with Diem p2p transactions under different account number, transaction number, and number of thread. Run LiTM: cd diem-move/diem-transaction-benchmarks/src cargo run --release main Use taskset commands to run experiments with different threads number. Set parameters in diem-move/diem-transaction-benchmarks/src/main.rs. The TPS results will show after the execution. Figure 3 in the paper contains TPS results of LiTM with Diem p2p transactions under different account number, transaction number, and number of thread.
Community
0 commentsNo discussion yet
Be the first to share a question or observation.