INNER CODE UNIT · TypeScript

generateResourceComparison

envoyproxy/gateway · site/tools/benchmark-dashboard/src/data/index.ts:214

export const generateResourceComparison = (versions?: string[]): ResourceComparison[] => {
  const suitesToProcess = versions ? getDataByVersions(versions) : allTestSuites;

  return suitesToProcess.flatMap(suite =>
    suite.results.map(result => ({
      version: suite.metadata.version,
      runId: suite.metadata.runId,
      routes: result.routes,
      phase: result.phase,
      envoyGatewayMemory: result.resources.envoyGateway.memory.mean,
      envoyGatewayCpu: result.resources.envoyGateway.cpu.mean,
      envoyProxyMemory: result.resources.envoyProxy.memory.mean,
      envoyProxyCpu: result.resources.envoyProxy.cpu.mean
    }))
  );
};

// ========================================

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…