()
| 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.) |
| 244 | function 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 | |
| 259 | console.error('Running benchmark suite — %d cases…', suite.cases.length); |
| 260 | console.error(' building all three warm CE columns (ce-current / ce-pub / CE+Rubi+Fungrim) in one warm process (minified bundles)…'); |
no test coverage detected