Benchmark

com.phasmidsoftware.number.core.misc.Benchmark
object Benchmark

An object providing benchmarking utilities for measuring the execution time of code snippets. It includes an implicit class that extends the functionality of the Int type, allowing expressions to be evaluated multiple times with performance metrics.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Benchmark.type

Members list

Type members

Classlikes

implicit class Repetitions(n: Int)

An implicit class that adds additional functionality to the Int type, allowing for repeated evaluation of expressions along with performance measurement. This class is designed for benchmarking purposes, enabling the user to measure the mean execution time of an expression over the given number of repetitions.

An implicit class that adds additional functionality to the Int type, allowing for repeated evaluation of expressions along with performance measurement. This class is designed for benchmarking purposes, enabling the user to measure the mean execution time of an expression over the given number of repetitions.

Value parameters

n

the number of repetitions for the evaluation of the provided expression.

Attributes

Supertypes
class Object
trait Matchable
class Any

Implicits

Implicits

final implicit def Repetitions(n: Int): Repetitions

An implicit class that adds additional functionality to the Int type, allowing for repeated evaluation of expressions along with performance measurement. This class is designed for benchmarking purposes, enabling the user to measure the mean execution time of an expression over the given number of repetitions.

An implicit class that adds additional functionality to the Int type, allowing for repeated evaluation of expressions along with performance measurement. This class is designed for benchmarking purposes, enabling the user to measure the mean execution time of an expression over the given number of repetitions.

Value parameters

n

the number of repetitions for the evaluation of the provided expression.

Attributes