feat(bench): Add JSON reporter for "deno bench" subcommand (#17595)

This commit is contained in:
Serhiy Barhamon 2023-02-12 19:40:45 +02:00 committed by GitHub
parent 5a83af4837
commit fc843d035c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 101 additions and 4 deletions

View file

@ -105,6 +105,7 @@ impl CacheSetting {
pub struct BenchOptions {
pub files: FilesConfig,
pub filter: Option<String>,
pub json: bool,
}
impl BenchOptions {
@ -119,6 +120,7 @@ impl BenchOptions {
Some(bench_flags.files),
),
filter: bench_flags.filter,
json: bench_flags.json,
})
}
}