concept-collection / matmul-bench
matmul-bench / src / data / nativeReference.ts
18 lines · 654 BBlameHistoryRaw
1// Reference timings from running native/bench_native (dgemm via OpenBLAS) on
2// a Linux desktop, outside the browser. Hardware-dependent — for rough
3// comparison only. Regenerate with: native/build.sh && native/bench_native
4export interface NativeReferenceRow {
5 n: number
6 gflops1t: number
7 gflopsNt: number
8}
10export const NATIVE_MAX_THREADS = 12
12export const NATIVE_REFERENCE: NativeReferenceRow[] = [
13 { n: 128, gflops1t: 6.78, gflopsNt: 0.33 },
14 { n: 256, gflops1t: 9.88, gflopsNt: 2.78 },
15 { n: 512, gflops1t: 27.94, gflopsNt: 12.20 },
16 { n: 1024, gflops1t: 55.34, gflopsNt: 71.43 },
17 { n: 2048, gflops1t: 55.23, gflopsNt: 116.04 },