Skip to content

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

License

Notifications You must be signed in to change notification settings

elliotwutingfeng/cpubenchmarknet

Repository files navigation

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