e.g. "saxpy"
slug from getGpuModel
array of { n, compute_ms, compute_GBs } records
Optionaloptions: { fileName?: string; folder?: string } = {}
OptionalfileName?: stringfile name without .json (default: routineName)
Optionalfolder?: stringsubfolder under wgblas/ to nest the file in (default: none, flat layout)
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. Omitting both keeps the original flat layout every other routine still uses.