renderSummary method

String renderSummary()

Implementation

String renderSummary() {
  String fmt(int bytes) => '${(bytes / 1024).toStringAsFixed(1)} KB';
  return [
    'Ingest FFI entrypoint comparison ($docBytes B doc):',
    '  prepareSourceIngestion(String):   prepare_in=${fmt(stringPrepareInBytes)}',
    '  prepareSourceIngestionFromUtf8:   prepare_in=${fmt(utf8PrepareInBytes)}',
    '  prepareSourceIngestionFromFile:   prepare_in=${fmt(filePrepareInBytes)}',
  ].join('\n');
}