# bench > Run MongoDB benchmarks with dbtest - Author: chrischeng-c4 - Repository: chrischeng-c4/cclab - Version: 20260126151830 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/chrischeng-c4/cclab - Web: https://mule.run/skillshub/@@chrischeng-c4/cclab~bench:20260126151830 --- --- name: bench description: Run MongoDB benchmarks with dbtest user-invocable: true --- # /bench Runs MongoDB benchmarks using the dbtest CLI tool. ## Usage ```bash /bench [options] ``` ## Options - No arguments: Run all benchmarks in `python/tests/mongo/benchmarks/` - `--verbose` or `-v`: Show detailed output - `--pattern `: Filter benchmark files (e.g., `bench_insert.py`) ## Examples ```bash # Run all benchmarks /bench # Run with verbose output /bench --verbose # Run specific benchmark /bench --pattern bench_insert.py ``` ## Command Run the following command: ```bash uv run python -m cclab.probe.cli --root python/tests/mongo/benchmarks bench ``` For verbose mode: ```bash uv run python -m cclab.probe.cli --root python/tests/mongo/benchmarks bench --verbose ``` ## Prerequisites - MongoDB must be running locally on `localhost:27017` - Python dependencies installed via `uv` ## What it tests Benchmarks compare performance between: - **data-bridge**: The Rust-based MongoDB ODM - **Beanie**: The Python-based async MongoDB ODM Operations benchmarked: - Insert (single and bulk) - Find (one and many) - Update (single and bulk) - Delete - Upsert - Aggregation - Count