INNER CODE UNIT · TypeScript

calculateGroupDuration

SveltyCMS/SveltyCMS · scripts/benchmark-matrix/index.ts:467

function calculateGroupDuration(
  groupFiles: string[],
  historicWeights: Record<string, number>,
  concurrency: number,
): string {
  let sum = 0;
  for (const file of groupFiles) {
    const name = getTestName(file);
    sum += historicWeights[name] || TEST_WEIGHTS[name] || 10;
  }
  return formatTime(sum / concurrency);
}

function printProgressDashboard(opts: {
  groupName: string;
  groupDone: number;
  groupTotal: number;
  runningCount: number;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…