external-crates/move/crates/language-benchmarks/README.md
This crate contains benchmarks for the Move language, designed to evaluate performance and efficiency of various language features and constructs.
The benchmarks in this crate help developers and contributors understand the runtime characteristics of Move programs. They are useful for profiling, regression testing, and optimizing the Move VM and standard library.
This move_vm.rs provides benchmarking utilities for Move VM modules using the Criterion crate.
It compiles Move source files, locates benchmark functions (functions whose names start with bench), and executes them in a Move VM runtime environment. The benchmarking is performed via Criterion, allowing for performance measurement of Move code.
Key components:
benches/: Contains individual benchmark files.Cargo.toml: Benchmark dependencies and configuration.To run the benchmarks, use:
$ cargo bench
# To get a quick run reduce the warm up time and measurement time.
$ cargo bench -- --warm-up-time=1 --measurement-time=3