diff --git a/src/benchmark/stats/summarizer.ts b/src/benchmark/stats/summarizer.ts index e0d77fce2e..ee411cf655 100644 --- a/src/benchmark/stats/summarizer.ts +++ b/src/benchmark/stats/summarizer.ts @@ -187,9 +187,21 @@ export async function summarizeSlicerStats(stats: SlicerStats, report: (criteria dataflowNodes: perSliceStat.numberOfDataflowNodesSliced })) } catch(e: unknown) { - console.error(` ! Failed to re-parse the output of the slicer for ${JSON.stringify(criteria)}`) //, e - console.error(` Code: ${output}\n`) - failedOutputs++ + if(output.length === 0) { + reductions.push(calculateReductionForSlice(stats.input, stats.dataflow, { + lines: lines, + characters: output.length, + nonWhitespaceCharacters: nonWhitespace, + autoSelected: autoSelected, + tokens: 0, + normalizedTokens: 0, + dataflowNodes: perSliceStat.numberOfDataflowNodesSliced + })) + } else { + console.error(` ! Failed to re-parse the output of the slicer for ${JSON.stringify(criteria)}`) //, e + console.error(` Code: ${output}\n`) + failedOutputs++ + } } sliceSize.dataflowNodes.push(perSliceStat.numberOfDataflowNodesSliced)