Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.55 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.55 KB

Unofficial cpubenchmark.net dataset utility

Go Reference Go Report Card Coveralls

GitHub license

An unofficial library for downloading the CPU Mega List dataset by PassMark Software.

Spot any bugs? Report them here

Disclaimer: This project is not sponsored, endorsed, or otherwise affiliated with PassMark Software.

Requirements

  • Go 1.20

Basic Example

The following snippet downloads the dataset as a JSON string and prints it to stdout.

package main

import (
    "fmt"

    "github.com/elliotwutingfeng/cpubenchmarknet"
)

func main() {
    CPUMegaList, err := cpubenchmarknet.GetCPUMegaList()
    if err == nil {
        fmt.Println(CPUMegaList) // JSON string
    } else {
        fmt.Println(err)
    }
}

References