UNPKG

perfrunner-core

Version:

Automated UI performance test tool to measure performance changes for the web apps and sites

18 lines (17 loc) 627 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.groupEntries = void 0; const groupEntries = (rawPerformanceData) => { const runs = rawPerformanceData; const combined = runs[0].reduce((result, pEntry) => { const sameEntries = runs.reduce((acc, v) => { const same = v.find((x) => x.entryType === pEntry.entryType && x.name === pEntry.name); same && acc.push(same); return acc; }, []); result.push(sameEntries); return result; }, []); return combined; }; exports.groupEntries = groupEntries;