scheduler_perf

package
v0.0.0-...-b7b0d94 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

README

What's this

It's the benchmark to compare three extension ways:

  • Plugins (Scheduling Framework)
  • Extenders
  • Wasm

It's created based on scheduler_perf.

How to run

# run the benchmark.
go test -run=^$ -benchtime=1ns -bench=BenchmarkPerfScheduling

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataItem

type DataItem struct {
	// Data is a map from bucket to real data point (e.g. "Perc90" -> 23.5). Notice
	// that all data items with the same label combination should have the same buckets.
	Data map[string]float64 `json:"data"`
	// Unit is the data unit. Notice that all data items with the same label combination
	// should have the same unit.
	Unit string `json:"unit"`
	// Labels is the labels of the data item.
	Labels map[string]string `json:"labels,omitempty"`
}

DataItem is the data point.

type DataItems

type DataItems struct {
	Version   string     `json:"version"`
	DataItems []DataItem `json:"dataItems"`
}

DataItems is the data point set. It is the struct that perf dashboard expects.

Directories

Path Synopsis
wasm
nodenumber
Package main is the entrypoint of the %.wasm file, compiled with '-target=wasi'.
Package main is the entrypoint of the %.wasm file, compiled with '-target=wasi'.

Jump to

Keyboard shortcuts

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