Update benchmark tests with filtering
This commit is contained in:
+6
-1
@@ -49,7 +49,12 @@ fn main() {
|
||||
}
|
||||
|
||||
println!("🚀 Running benchmarks in RELEASE mode...\n");
|
||||
let results = tester::run_benchmarks(cli.update_bench);
|
||||
let filter = cli
|
||||
.file
|
||||
.as_ref()
|
||||
.and_then(|p| p.file_name())
|
||||
.map(|n| n.to_string_lossy().to_string());
|
||||
let results = tester::run_benchmarks(cli.update_bench, filter.as_deref());
|
||||
for res in results {
|
||||
let diff = res
|
||||
.diff_pct
|
||||
|
||||
Reference in New Issue
Block a user