Skip to content

benchmarks.util

fn format_ms #

fn format_ms(time_ms f64) string

format_ms exposes this operation as part of the public API.

fn gflops_gemm #

fn gflops_gemm(m int, n int, k int, time_ms f64) f64

gflops_gemm exposes this operation as part of the public API.

fn mean_time_ms #

fn mean_time_ms(mut samples []f64) f64

mean_time_ms exposes this operation as part of the public API.

fn stddev_time_ms #

fn stddev_time_ms(samples []f64, mean f64) f64

stddev_time_ms exposes this operation as part of the public API.

struct BenchConfig #

struct BenchConfig {
pub:
	sizes       []int
	iterations  int = 5
	warmup_runs int = 2
}

BenchConfig defines a public data structure for this module.