MCPcopy Index your code
hub / github.com/formatjs/formatjs / getSampleCount

Function getSampleCount

benchmarks/cli-comparison/benchmark-tinybench.mjs:201–204  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

199}
200
201function getSampleCount(result) {
202 const latency = getLatency(result)
203 return latency.samplesCount ?? latency.samples.length
204}
205
206// Calculate metrics
207const tsMean = getMean(tsResult.result) // Already in ms

Callers 1

Calls 1

getLatencyFunction · 0.85

Tested by

no test coverage detected