e.g. "saxpy"
slug from getGpuModel
array of { n, compute_ms, compute_GBs } records,
plus the swept key(s) for a sweep (e.g. stride, uplo) and compute_GFLOPs where recorded
Optionaloptions: { fileName?: string; folder?: string; root?: string } = {}
OptionalfileName?: stringfile name without .json (default: routineName)
Optionalfolder?: stringsubfolder under wgblas/ to nest the file in (default: none, flat layout)
Optionalroot?: stringresults root (default: "benchmarks/results"); a
scratch root keeps a trial run out of the published results
Writes
resultstobenchmarks/results/<gpuModel>/wgblas/<routineName>.json, creating the directory if needed. No-ops with a warning whengpuModelis null.Routines with more than one benchmark variant (e.g. a stride sweep alongside the main unit-stride one) pass
folderto nest both underbenchmarks/results/<gpuModel>/wgblas/<folder>/instead, andfileNameto give each variant its own file within it — e.g.saveResults("saxpy", gpuModel, strideRecords, { folder: "saxpy", fileName: "stride.saxpy" })writes.../wgblas/saxpy/stride.saxpy.json. Every routine now has at least one sweep, so every benchmark passes both; omitting them still writes the original flatwgblas/<routineName>.json.