Crates.io | language-benchmarks |
lib.rs | language-benchmarks |
version | 0.3.2 |
source | src |
created_at | 2022-05-23 15:36:12.428041 |
updated_at | 2022-08-23 18:59:33.949342 |
description | Move language benchmarks |
homepage | https://diem.com |
repository | https://github.com/diem/diem |
max_upload_size | |
id | 591895 |
size | 11,984 |
This doc is going to talk about how to run performance benchmarks on macOS.
Instrument can be found in Xcode > Open Developer Tool > Instrument.
We currently have four local benchmark candidates:
executor_benchmark
in diem/executor
txn_bench
in diem/language/benchmark
Arith
and call
benchmark in diem/language/benchmark
The first item is a comprehensive benchmark of diem adapter, executor and storage that generates a block of p2p transactions and tries to execute and commit it to the DiemDB in local storage. The second item is a benchmark of Diem adapter only with a fake executor and an in-memory storage that executes randomly generated p2p transactions. The third item, although it’s still invoking Diem adapter, is mostly testing on the MoveVM’s ability of handling simple arithmetic operations and call stacks.
Open instrument and create a time profiler project.
Launch the benchmark target in the terminal, and select it in Instrument.
Here’s an example trace from running the benchmark