EventTimings

class EventTimings(val embedNanos: Long, val searchNanos: Long, val verifierNanos: Long)

Wall-clock nanoseconds spent in each stage of a single lookup, for latency metrics.

A stage that did not run reports 0 — most obviously verifierNanos when no Verifier is configured or no candidate reached it. embedNanos can be near-zero when a negative-cache hit supplied the embedding, which is the honest number: no embedding call was made.

Constructors

Link copied to clipboard
constructor(embedNanos: Long, searchNanos: Long, verifierNanos: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Time in Embedder.embed for this lookup (near-zero when the negative cache supplied the vector).

Link copied to clipboard

Time in CacheStore.search for this lookup.

Link copied to clipboard

Total time in Verifier.verify for this lookup, across every candidate checked. 0 if none ran.

Functions

Link copied to clipboard
open override fun toString(): String