INNER CODE UNIT · Go

cacheMissRate

bhope/hedge · benchmark/streaming/main.go:66

	cacheMissRate   = 0.20 // fraction of requests that are cache misses

	// hedgePercentile is the sketch quantile used by the adaptive transport.
	// p80 sits at the ceiling of the cache-hit distribution so the hedge fires
	// for all cache misses but skips most cache hits.
	hedgePercentile = 0.80
)

// ── log-normal sampling (same style as simulate/main.go) ───────────────────

var (
	hitMu, hitSigma   float64
	missMu, missSigma float64
)

func init() {
	hitMu, hitSigma = lognParams(cacheHitMeanMs*1e6, cacheHitStdMs*1e6)
	missMu, missSigma = lognParams(cacheMissMeanMs*1e6, cacheMissStdMs*1e6)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…