ttfthist

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ttfthist 定义首 token 时延(TTFT)直方图档位;插值复用 histutil。 档位偏 100ms–10s 密集(TTFT 主分布区)。改档必须配套 rebuild 回填。

Index

Constants

View Source
const NumSlots = 17

Variables

View Source
var Edges = [NumSlots - 1]int64{
	50, 100, 200, 300, 500, 750, 1000, 1500,
	2000, 3000, 5000, 7500, 10000, 15000, 20000, 30000,
}

Functions

func EstimatePercentile

func EstimatePercentile(counts [NumSlots]int64, p float64, maxMs int64) int64

func SlotIndex

func SlotIndex(ms int64) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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