MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / runCeWarmBatch

Function runCeWarmBatch

benchmarks/report.mjs:244–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242// engine as 1.5–2× slower when under-warmed, an artifact that made ce-current
243// look slower than the pack-loaded ce-rubi on pure numerics.)
244function runCeWarmBatch() {
245 const by = { 'ce-current': {}, 'ce-pub': {}, 'ce-rubi': {} };
246 try {
247 const out = execFileSync(NODE, [join(__dirname, 'runners', 'run_ce_rubi.mjs')],
248 { timeout: RUBI_BATCH_TIMEOUT_MS, encoding: 'utf8', cwd: ROOT,
249 env: { ...process.env, CE_CURRENT_BUNDLE, CE_PUBLISHED_BUNDLE }, stdio: ['ignore', 'pipe', 'pipe'] });
250 for (const line of out.trim().split('\n')) {
251 try { const o = JSON.parse(line); if (o.id && by[o.tool]) by[o.tool][o.id] = o; } catch { /* skip non-JSON */ }
252 }
253 } catch (e) {
254 console.error(' ce warm batch failed:', (e.message || e).toString().split('\n')[0]);
255 }
256 return by;
257}
258
259console.error('Running benchmark suite — %d cases…', suite.cases.length);
260console.error(' building all three warm CE columns (ce-current / ce-pub / CE+Rubi+Fungrim) in one warm process (minified bundles)…');

Callers 1

report.mjsFile · 0.85

Calls 3

parseMethod · 0.65
errorMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected