mcframework.benchmark.BenchmarkResult#
- class mcframework.benchmark.BenchmarkResult[source]#
Bases:
objectTiming outcome for one (backend, size) cell.
- Attributes:
- backend
str Backend label (matches
BackendSpec.label).- device
str Device the work ran on (
"cpu","mps","cuda").- n_simulations
int Number of simulation draws timed.
- execution_time
float Best (minimum) wall-clock time across repeats, in seconds.
- throughput
float n_simulations / execution_time(simulations per second).- mean_estimate
float The simulation’s mean estimate (a sanity signal, not a timing metric).
- peak_memory_mb
floatorNone Peak device memory in MB when available (reserved for GPU backends).
- backend
Methods
- classmethod __new__(*args, **kwargs)#