Skip to content

Commit 768ba6d

Browse files
committed
fix
1 parent f242c32 commit 768ba6d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

benches/transformer.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@ impl TheBencher for OxcBencher {
5555
}
5656
}
5757

58-
struct SwcBencher;
58+
// struct SwcBencher;
5959

60-
impl TheBencher for SwcBencher {
61-
type RunOutput = String;
62-
type Options = ();
60+
// impl TheBencher for SwcBencher {
61+
// type RunOutput = String;
62+
// type Options = ();
6363

64-
const ID: &'static str = "swc";
64+
// const ID: &'static str = "swc";
6565

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+
// }
7070

7171
fn transformer_benchmark(c: &mut Criterion) {
7272
let filenames = ["typescript.js", "cal.com.tsx"];
@@ -78,7 +78,7 @@ fn transformer_benchmark(c: &mut Criterion) {
7878
let options = oxc::transformer::TransformOptions::from_target("es2015").unwrap();
7979
OxcBencher::bench(&mut g, &path, &source, &options);
8080

81-
SwcBencher::bench(&mut g, &path, &source, &());
81+
// SwcBencher::bench(&mut g, &path, &source, &());
8282
g.finish();
8383
}
8484
}

0 commit comments

Comments
 (0)