MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / computeApdex

Function computeApdex

tests/loadtest/tools/dashboard/app.js:1324–1331  ·  view source on GitHub ↗
(values, threshold = 300)

Source from the content-addressed store, hash-verified

1322}
1323
1324function computeApdex(values, threshold = 300) {
1325 if (!values.length) {
1326 return null;
1327 }
1328 const satisfied = values.filter((value) => value <= threshold).length;
1329 const tolerated = values.filter((value) => value > threshold && value <= threshold * 4).length;
1330 return (satisfied + tolerated * 0.5) / values.length;
1331}
1332
1333function floorMinute(timestamp) {
1334 const date = new Date(timestamp);

Callers 1

normalizeNdjsonRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected