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).

BenchId

struct BenchId

Defines a benchmark Id struct to identify and represent a particular benchmark execution.

Fields

  • func_name (String): The target function name.
  • input_id (Optional[String]): The target function input id phrase.

Implemented traits

AnyType, ImplicitlyDestructible

Methods

__init__

__init__(out self, func_name: String, input_id: String)

Constructs a Benchmark Id object from input function name and Id phrase.

Args:

  • func_name (String): The target function name.
  • input_id (String): The target function input id phrase.

__init__(out self, func_name: String)

Constructs a Benchmark Id object from input function name.

Args:

  • func_name (String): The target function name.

__init__(out self, func_name: StringLiteral)

Constructs a Benchmark Id object from input function name.

Args: