Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTaskWithExecWrapper ¶ added in v1.0.0
func NewTaskWithExecWrapper(execWrapper execwrapper.ExecWrapper) perf.Task
Types ¶
type CPUBenchmarkResult ¶
type CPUBenchmarkResult struct {
SingleThreaded float64 `json:"single"`
MultiThreaded float64 `json:"multi"`
Threads int `json:"threads"`
Workloads int `json:"workloads"`
}
CPUBenchmarkResult holds CPU benchmark results with the workloads number during the benchmark.
type CPUBenchmarkTask ¶
type CPUBenchmarkTask struct {
// contains filtered or unexported fields
}
CPUBenchmarkTask defines CPU benchmark task.
func (*CPUBenchmarkTask) Cron ¶
func (c *CPUBenchmarkTask) Cron() string
Cron returns task cron schedule.
func (*CPUBenchmarkTask) Description ¶
func (c *CPUBenchmarkTask) Description() string
Description returns task description.
func (*CPUBenchmarkTask) Jitter ¶
func (c *CPUBenchmarkTask) Jitter() uint32
Jitter returns the max number of seconds the job can sleep before actual execution.
Click to show internal directories.
Click to hide internal directories.