-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
035d1f0
commit 47d34a3
Showing
17 changed files
with
339 additions
and
39 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
4 changes: 2 additions & 2 deletions
4
crates/swc_html_minifier/tests/fixture/attribute/imagesrcset/output.min.html
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!doctype html><html lang=en><title>Document</title><link rel=preload as=image imagesrcset="dog-cropped-1x.jpg,dog-cropped-2x.jpg 2x" media="(max-width: 800px)"><link rel=preload as=image imagesrcset="dog-wide-1x.jpg,dog-wide-2x.jpg 2x" media="(min-width: 801px)"><link rel=preload as=image imagesrcset="wolf_400px.jpg 400w,wolf_800px.jpg 800w,wolf_1600px.jpg 1600w" imagesizes=50vw><link rel=preload as=image imagesrcset="wolf_400px.jpg 400w,wolf_800px.jpg 800w,wolf_1600px.jpg 1600w" imagesizes="(max-width: 600px) 480px,800px"><body> | ||
<!doctype html><html lang=en><title>Document</title><link rel=preload as=image imagesrcset="dog-cropped-1x.jpg,dog-cropped-2x.jpg 2x" media=(max-width:800px)><link rel=preload as=image imagesrcset="dog-wide-1x.jpg,dog-wide-2x.jpg 2x" media=(min-width:801px)><link rel=preload as=image imagesrcset="wolf_400px.jpg 400w,wolf_800px.jpg 800w,wolf_1600px.jpg 1600w" imagesizes=50vw><link rel=preload as=image imagesrcset="wolf_400px.jpg 400w,wolf_800px.jpg 800w,wolf_1600px.jpg 1600w" imagesizes="(max-width:600px) 480px,800px"><body> | ||
<div>test</div> | ||
<img srcset="elva-fairy-480w.jpg 480w,elva-fairy-800w.jpg 800w" sizes="(max-width: 600px) 480px,800px" src=elva-fairy-800w.jpg alt="Elva dressed as a fairy"> | ||
<img srcset="elva-fairy-480w.jpg 480w,elva-fairy-800w.jpg 800w" sizes="(max-width:600px) 480px,800px" src=elva-fairy-800w.jpg alt="Elva dressed as a fairy"> | ||
|
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
Oops, something went wrong.
47d34a3
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/minify/libraries/antd
1610173836
ns/iter (± 9261193
)1610325828
ns/iter (± 54053710
)1.00
es/full/minify/libraries/d3
407066465
ns/iter (± 6123127
)416841370
ns/iter (± 22310404
)0.98
es/full/minify/libraries/echarts
1595742452
ns/iter (± 17988364
)1662970280
ns/iter (± 75009676
)0.96
es/full/minify/libraries/jquery
87787634
ns/iter (± 863458
)100408295
ns/iter (± 4626616
)0.87
es/full/minify/libraries/lodash
115675915
ns/iter (± 1536439
)124251445
ns/iter (± 7145215
)0.93
es/full/minify/libraries/moment
51180371
ns/iter (± 661328
)51237864
ns/iter (± 2542162
)1.00
es/full/minify/libraries/react
16989376
ns/iter (± 388476
)17600180
ns/iter (± 745158
)0.97
es/full/minify/libraries/terser
599010362
ns/iter (± 9625268
)605840072
ns/iter (± 16119932
)0.99
es/full/minify/libraries/three
535861197
ns/iter (± 4201618
)541267793
ns/iter (± 26526228
)0.99
es/full/minify/libraries/typescript
3400263690
ns/iter (± 61791998
)3421016946
ns/iter (± 73295386
)0.99
es/full/minify/libraries/victory
730068947
ns/iter (± 8573472
)712595102
ns/iter (± 12038432
)1.02
es/full/minify/libraries/vue
144714239
ns/iter (± 8327625
)137678276
ns/iter (± 7237265
)1.05
es/full/codegen/es3
32009
ns/iter (± 1304
)32601
ns/iter (± 1350
)0.98
es/full/codegen/es5
31796
ns/iter (± 788
)32647
ns/iter (± 1190
)0.97
es/full/codegen/es2015
32073
ns/iter (± 606
)32680
ns/iter (± 1478
)0.98
es/full/codegen/es2016
31995
ns/iter (± 805
)32716
ns/iter (± 1499
)0.98
es/full/codegen/es2017
31991
ns/iter (± 1204
)32695
ns/iter (± 1589
)0.98
es/full/codegen/es2018
32073
ns/iter (± 894
)32690
ns/iter (± 883
)0.98
es/full/codegen/es2019
32001
ns/iter (± 926
)32750
ns/iter (± 1136
)0.98
es/full/codegen/es2020
31994
ns/iter (± 1064
)32771
ns/iter (± 1645
)0.98
es/full/all/es3
193491453
ns/iter (± 7701445
)196762948
ns/iter (± 14704724
)0.98
es/full/all/es5
184145035
ns/iter (± 5902906
)180214055
ns/iter (± 10390608
)1.02
es/full/all/es2015
148279095
ns/iter (± 4941489
)138450416
ns/iter (± 4116063
)1.07
es/full/all/es2016
147838205
ns/iter (± 5836716
)141554798
ns/iter (± 9190769
)1.04
es/full/all/es2017
136721861
ns/iter (± 4505631
)144106800
ns/iter (± 8529000
)0.95
es/full/all/es2018
134826393
ns/iter (± 1705581
)146194583
ns/iter (± 10505526
)0.92
es/full/all/es2019
134825798
ns/iter (± 2694512
)145796178
ns/iter (± 9423319
)0.92
es/full/all/es2020
133130665
ns/iter (± 5208024
)137662275
ns/iter (± 8368571
)0.97
es/full/parser
711716
ns/iter (± 14330
)723414
ns/iter (± 26713
)0.98
es/full/base/fixer
29697
ns/iter (± 481
)29755
ns/iter (± 1074
)1.00
es/full/base/resolver_and_hygiene
87794
ns/iter (± 2389
)87813
ns/iter (± 8247
)1.00
serialization of ast node
206
ns/iter (± 4
)205
ns/iter (± 1
)1.00
serialization of serde
218
ns/iter (± 3
)217
ns/iter (± 1
)1.00
This comment was automatically generated by workflow using github-action-benchmark.