cpu

package
v0.0.12-20251111095842 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeekBenchTest

func GeekBenchTest(language, testThread string) string

GeekBenchTest 调用 geekbench 执行CPU测试 调用 geekbench 命令执行 https://github.com/masonr/yet-another-bench-script/blob/0ad4c4e85694dbcf0958d8045c2399dbd0f9298c/yabs.sh#L894

func RunBenchmark

func RunBenchmark(config Config) (uint64, float64, []float64)

func SysBenchTest

func SysBenchTest(language, testThread string) string

SysBenchTest 基于sysbench测试

func WinsatTest

func WinsatTest(language, testThread string) string

Types

type Config

type Config struct {
	MaxPrime   int
	Duration   time.Duration
	NumThreads int
	MaxEvents  int
}

func DefaultConfig

func DefaultConfig() Config

Jump to

Keyboard shortcuts

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