IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

quick_bench

Provides simplified benchmarking interface with automatic boilerplate handling.

This module implements the QuickBench type, which wraps the full Bench infrastructure to provide a simpler interface for common benchmarking tasks. It automatically handles Bencher setup and the keep() calls needed to prevent optimization, supporting functions with 0-10 arguments.

Structs

  • QuickBench: Defines a struct to facilitate benchmarking and avoiding Bencher boilerplate.