perfdata

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPULatencyNs

func CPULatencyNs(size int) float64

CPULatencyNs exposes the CPU latency curve for reporting.

func ShouldPreferGPU

func ShouldPreferGPU(size int) (preferGPU bool, ok bool)

ShouldPreferGPU returns whether GPU latency is expected to beat CPU latency. ok indicates whether the decision is backed by empirical GPU data.

Types

type Sample

type Sample struct {
	Size           int
	CPULatencyNano float64
	GPULatencyNano *float64
	Source         string
}

Sample captures empirical latency measurements for a given collection size.

Jump to

Keyboard shortcuts

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