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 print_header #
fn print_header(title string)
print_header exposes this operation as part of the public API.
fn print_row #
fn print_row(name string, size string, time_ms f64, extra string)
print_row exposes this operation as part of the public API.
fn print_table_header #
fn print_table_header()
print_table_header 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.