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. Omitting both keeps the original flat layout every other routine still uses.

      Parameters

      • routineName: any

        e.g. "saxpy"

      • gpuModel: any

        slug from getGpuModel

      • results: any

        array of { n, compute_ms, compute_GBs } records

      • Optionaloptions: { fileName?: string; folder?: string } = {}
        • OptionalfileName?: string

          file name without .json (default: routineName)

        • Optionalfolder?: string

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

      Returns void