Skip to content

Commit

Permalink
chore: bench concat add antd minify
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Mar 20, 2024
1 parent f262cc9 commit 6167bde
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,16 @@ fn benchmark_concat_generate_string(b: &mut Bencher) {
remove_original_source: false,
});

let concat = ConcatSource::new([sms_minify, sms_rollup]);
let antd_minify = SourceMapSource::new(SourceMapSourceOptions {
value: ANTD_MIN_JS,
name: "antd.min.js",
source_map: SourceMap::from_json(ANTD_MIN_JS_MAP).unwrap(),
original_source: None,
inner_source_map: None,
remove_original_source: false,
});

let concat = ConcatSource::new([sms_minify, sms_rollup, antd_minify]);

b.iter(|| {
concat
Expand Down

0 comments on commit 6167bde

Please sign in to comment.