Skip to main content
Log in

Mojo 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, Copyable, Movable

Methods​

__init__​

__init__(inout self: 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__(inout self: Self, func_name: String)

Constructs a Benchmark Id object from input function name.

Args:

  • ​func_name (String): The target function name.

Was this page helpful?