@@ -55,18 +55,18 @@ impl TheBencher for OxcBencher {
55
55
}
56
56
}
57
57
58
- struct SwcBencher ;
58
+ // struct SwcBencher;
59
59
60
- impl TheBencher for SwcBencher {
61
- type RunOutput = String ;
62
- type Options = ( ) ;
60
+ // impl TheBencher for SwcBencher {
61
+ // type RunOutput = String;
62
+ // type Options = ();
63
63
64
- const ID : & ' static str = "swc" ;
64
+ // const ID: &'static str = "swc";
65
65
66
- fn run ( path : & Path , source_text : & str , _option : & Self :: Options ) -> Self :: RunOutput {
67
- bench_transformer:: swc:: transform ( path, source_text)
68
- }
69
- }
66
+ // fn run(path: &Path, source_text: &str, _option: &Self::Options) -> Self::RunOutput {
67
+ // bench_transformer::swc::transform(path, source_text)
68
+ // }
69
+ // }
70
70
71
71
fn transformer_benchmark ( c : & mut Criterion ) {
72
72
let filenames = [ "typescript.js" , "cal.com.tsx" ] ;
@@ -78,7 +78,7 @@ fn transformer_benchmark(c: &mut Criterion) {
78
78
let options = oxc:: transformer:: TransformOptions :: from_target ( "es2015" ) . unwrap ( ) ;
79
79
OxcBencher :: bench ( & mut g, & path, & source, & options) ;
80
80
81
- SwcBencher :: bench ( & mut g, & path, & source, & ( ) ) ;
81
+ // SwcBencher::bench(&mut g, &path, &source, &());
82
82
g. finish ( ) ;
83
83
}
84
84
}
0 commit comments