cpubenchmarknet

package module
v0.0.0-...-1b00bbb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 6 Imported by: 0

README

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

Documentation

Overview

Package cpubenchmarknet is an unofficial library for downloading the CPU Mega List dataset by PassMark Software.

Example (Basic)
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)
	}
}
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPUMegaList

func GetCPUMegaList() (string, error)

GetCPUMegaList downloads CPU Mega List from cpubenchmark.net and returns its contents.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL