diff --git a/dev/benchmarks/microbenchmarks/lib/benchmark_collection.dart b/dev/benchmarks/microbenchmarks/lib/benchmark_collection.dart index b749306385e..ecca22fa0d3 100644 --- a/dev/benchmarks/microbenchmarks/lib/benchmark_collection.dart +++ b/dev/benchmarks/microbenchmarks/lib/benchmark_collection.dart @@ -119,5 +119,12 @@ Future main() async { } print('\n\n╡ ••• Done ••• ╞\n\n'); + + // Ensure stdout buffers are flushed so the collecting process gets Done + await stdout.flush(); + + // Now we're just being paranoid here and letting the process churn through + // log lines before handling the exit code. + await Future.delayed(const Duration(seconds: 5)); exit(0); }