benchmark

package module
v0.0.0-...-1574636 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 2 Imported by: 1

README

go-benchmark

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchmarkCount

type BenchmarkCount struct {
	Begin      time.Time
	End        time.Time
	RoundCount map[int]*RoundCount
}

BenchmarkCount 基准测试统计

func RunBenchmark

func RunBenchmark(tps int, rounds int, interval time.Duration, task taskFunc) (count BenchmarkCount)

RunBenchmark 一次基准测试

type RoundCount

type RoundCount struct {
	Begin      time.Time
	End        time.Time
	TaskCounts map[int]TaskCount
}

RoundCount 单轮统计

type TaskCount

type TaskCount struct {
	Begin  time.Time
	End    time.Time
	Status bool
}

TaskCount 单次统计

Jump to

Keyboard shortcuts

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