pub async fn write_bench_output_json( path: &Path, reports: &[BenchReport], ) -> Result<()>
Write every report as JSON to a file.
Returns an error if the file cannot be written.