renderSummary method
Implementation
String renderSummary() {
String row(String label, IngestLatencyStats s) =>
' $label p50=${s.p50Ms.toStringAsFixed(2)}ms '
'p95=${s.p95Ms.toStringAsFixed(2)}ms '
'mean=${s.meanMs.toStringAsFixed(2)}ms '
'±${s.stdevMs.toStringAsFixed(2)}ms';
return [
'Ingest latency ($docBytes B doc, warmup=$warmupRuns, measured=$measuredRuns):',
row('prepareSourceIngestion(String): ', stringPath),
row('prepareSourceIngestionFromUtf8: ', utf8Path),
row('prepareSourceIngestionFromFile: ', filePath),
].join('\n');
}