class ScenarioResult

Simple container for benchmark scenario results.

Methods

__construct(array $metrics)

Create a new scenario result instance.

float|null
get(string $key)

Get a specific metric value.

array
toArray()

Convert to array for compatibility.

Details

at line 17
__construct(array $metrics)

Create a new scenario result instance.

Parameters

array $metrics

Metric name => value (e.g., ['write_rate' => 1234.5, 'flush_time' => 0.05])

at line 25
float|null get(string $key)

Get a specific metric value.

Parameters

string $key

Return Value

float|null

at line 33
array toArray()

Convert to array for compatibility.

Return Value

array