We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b6e344 commit a898510Copy full SHA for a898510
tasks/benchmark/benches/codegen.rs
@@ -27,6 +27,18 @@ fn bench_codegen(criterion: &mut Criterion) {
27
});
28
group.finish();
29
30
+ // Codegen minified
31
+ let mut group = criterion.benchmark_group("codegen_minify");
32
+ group.bench_function(id.clone(), |b| {
33
+ b.iter_with_large_drop(|| {
34
+ CodeGenerator::new()
35
+ .with_options(CodegenOptions { minify: true, ..CodegenOptions::default() })
36
+ .build(&program)
37
+ .map
38
+ });
39
40
+ group.finish();
41
+
42
// Codegen sourcemap
43
let scoping = SemanticBuilder::new().build(&program).semantic.into_scoping();
44
0 commit comments