wgblas
    Preparing search index...

    Function saveResults

    • Writes results to benchmarks/results/<gpuModel>/wgblas/<routineName>.json, creating the directory if needed. No-ops with a warning when gpuModel is null.

      Routines with more than one benchmark variant (e.g. a stride sweep alongside the main unit-stride one) pass folder to nest both under benchmarks/results/<gpuModel>/wgblas/<folder>/ instead, and fileName to 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 flat wgblas/<routineName>.json.

      Parameters

      • routineName: string

        e.g. "saxpy"

      • gpuModel: string | null

        slug from getGpuModel

      • results: Record<string, string | number>[]

        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?: string

          file name without .json (default: routineName)

        • Optionalfolder?: string

          subfolder under wgblas/ to nest the file in (default: none, flat layout)

        • Optionalroot?: string

          results root (default: "benchmarks/results"); a scratch root keeps a trial run out of the published results

      Returns void