Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(css/minifier): Remove redundant clone (#6579)
- Loading branch information
Showing
6 changed files
with
85 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
export RUST_LOG=off | ||
export MIMALLOC_SHOW_STATS=1 | ||
|
||
cargo profile instruments --release -t time --features swc_common/concurrent --bench lexer -- --bench --color $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70ac028
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
es/full/bugs-1
351451
ns/iter (± 22878
)355955
ns/iter (± 23391
)0.99
es/full/minify/libraries/antd
2033011685
ns/iter (± 34953270
)2074256177
ns/iter (± 42312882
)0.98
es/full/minify/libraries/d3
472046996
ns/iter (± 21570279
)470748383
ns/iter (± 12776484
)1.00
es/full/minify/libraries/echarts
1739599899
ns/iter (± 20672664
)1668518668
ns/iter (± 25975328
)1.04
es/full/minify/libraries/jquery
120770254
ns/iter (± 3493320
)113988748
ns/iter (± 4757739
)1.06
es/full/minify/libraries/lodash
141444213
ns/iter (± 4791323
)137292553
ns/iter (± 4524299
)1.03
es/full/minify/libraries/moment
73592059
ns/iter (± 4144471
)66923243
ns/iter (± 5153896
)1.10
es/full/minify/libraries/react
23665527
ns/iter (± 1646141
)25186007
ns/iter (± 1112396
)0.94
es/full/minify/libraries/terser
366967071
ns/iter (± 6293616
)353103492
ns/iter (± 13037696
)1.04
es/full/minify/libraries/three
643151453
ns/iter (± 22734070
)644744601
ns/iter (± 17554761
)1.00
es/full/minify/libraries/typescript
3837846518
ns/iter (± 167052390
)3829266116
ns/iter (± 62621533
)1.00
es/full/minify/libraries/victory
938503653
ns/iter (± 52163361
)912006407
ns/iter (± 30388870
)1.03
es/full/minify/libraries/vue
197556572
ns/iter (± 9767530
)172806701
ns/iter (± 7097635
)1.14
es/full/codegen/es3
34428
ns/iter (± 1287
)34648
ns/iter (± 3653
)0.99
es/full/codegen/es5
34074
ns/iter (± 4675
)34707
ns/iter (± 4450
)0.98
es/full/codegen/es2015
34044
ns/iter (± 851
)35481
ns/iter (± 4222
)0.96
es/full/codegen/es2016
34138
ns/iter (± 1786
)34698
ns/iter (± 5155
)0.98
es/full/codegen/es2017
34167
ns/iter (± 3197
)34945
ns/iter (± 4089
)0.98
es/full/codegen/es2018
34367
ns/iter (± 2431
)35886
ns/iter (± 6685
)0.96
es/full/codegen/es2019
34647
ns/iter (± 3683
)34359
ns/iter (± 2987
)1.01
es/full/codegen/es2020
34629
ns/iter (± 2430
)35858
ns/iter (± 6349
)0.97
es/full/all/es3
220761121
ns/iter (± 23849680
)206414744
ns/iter (± 14046727
)1.07
es/full/all/es5
205212711
ns/iter (± 17687171
)189877395
ns/iter (± 17583766
)1.08
es/full/all/es2015
165493615
ns/iter (± 14742950
)150824523
ns/iter (± 7502891
)1.10
es/full/all/es2016
165807431
ns/iter (± 14765169
)163363948
ns/iter (± 16297666
)1.01
es/full/all/es2017
160548536
ns/iter (± 16179076
)156392441
ns/iter (± 12666257
)1.03
es/full/all/es2018
161154787
ns/iter (± 15008888
)151988067
ns/iter (± 10754135
)1.06
es/full/all/es2019
158910141
ns/iter (± 12307004
)146125605
ns/iter (± 7321473
)1.09
es/full/all/es2020
154555362
ns/iter (± 15091502
)141531282
ns/iter (± 5759423
)1.09
es/full/parser
744682
ns/iter (± 30584
)736734
ns/iter (± 89877
)1.01
es/full/base/fixer
26354
ns/iter (± 1552
)26595
ns/iter (± 1940
)0.99
es/full/base/resolver_and_hygiene
91927
ns/iter (± 4556
)93144
ns/iter (± 6704
)0.99
serialization of ast node
210
ns/iter (± 2
)215
ns/iter (± 21
)0.98
serialization of serde
223
ns/iter (± 3
)233
ns/iter (± 36
)0.96
This comment was automatically generated by workflow using github-action-benchmark.