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.
- Go 1.20
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)
}
}