perf-tests/dummy-package/README.md
This is a dummy Rust package specifically designed for performance testing with RustOwl. The package contains various Rust patterns and constructs that RustOwl can analyze, including:
unwrap() that might panicResult and ContextArc<Mutex<T>>The dummy package can be built and run to provide realistic workload for RustOwl analysis:
cargo build --release
cargo run -- --help
The dummy application supports several operations:
data - Run data structure operations with potential ownership issuesnetwork - Run network operations (may fail without internet)files - Run file I/O operationscompute - Run CPU-intensive computationsall - Run all operationsThis package is used by the RustOwl performance testing script (perf-tests.sh) to provide a consistent, realistic codebase for performance analysis.
The code intentionally contains patterns that RustOwl can analyze and potentially flag, making it an ideal test case for measuring RustOwl's analysis performance on real-world-like Rust code.
The performance testing script supports different analysis modes:
--all-targets --all-featuresThe package includes multiple targets (main binary, examples, tests) and conditional features to enable comprehensive testing of RustOwl's analysis capabilities across different code paths and compilation scenarios.