File tree 3 files changed +30600
-8
lines changed
3 files changed +30600
-8
lines changed Original file line number Diff line number Diff line change @@ -78,14 +78,15 @@ impl TheBencher for BiomeBencher {
78
78
}
79
79
80
80
fn parser_benchmark ( c : & mut Criterion ) {
81
- let filename = "typescript.js" ;
82
- let source = std:: fs:: read_to_string ( filename) . unwrap ( ) ;
83
-
84
- let mut g = c. benchmark_group ( filename) ;
85
- OxcBencher :: bench ( & mut g, & source) ;
86
- SwcBencher :: bench ( & mut g, & source) ;
87
- BiomeBencher :: bench ( & mut g, & source) ;
88
- g. finish ( ) ;
81
+ let filenames = [ "files/typescript.js" , "files/cal.com.tsx" ] ;
82
+ for filename in filenames {
83
+ let source = std:: fs:: read_to_string ( filename) . unwrap ( ) ;
84
+ let mut g = c. benchmark_group ( filename) ;
85
+ OxcBencher :: bench ( & mut g, & source) ;
86
+ SwcBencher :: bench ( & mut g, & source) ;
87
+ BiomeBencher :: bench ( & mut g, & source) ;
88
+ g. finish ( ) ;
89
+ }
89
90
}
90
91
91
92
criterion_group ! ( parser, parser_benchmark) ;
You can’t perform that action at this time.
0 commit comments