-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(css/parser): Add a test (#6666)
- Loading branch information
1 parent
fc6ed6b
commit 87e1efd
Showing
3 changed files
with
345 additions
and
2 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
87e1efd
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
303209
ns/iter (± 10929
)286022
ns/iter (± 13135
)1.06
es/full/minify/libraries/antd
1587710313
ns/iter (± 18766309
)1744376852
ns/iter (± 18990220
)0.91
es/full/minify/libraries/d3
301636658
ns/iter (± 7133572
)336060453
ns/iter (± 4837801
)0.90
es/full/minify/libraries/echarts
1246789912
ns/iter (± 36546225
)1452237981
ns/iter (± 15115550
)0.86
es/full/minify/libraries/jquery
89489127
ns/iter (± 2142963
)91641510
ns/iter (± 995224
)0.98
es/full/minify/libraries/lodash
105863771
ns/iter (± 879694
)110390016
ns/iter (± 1805746
)0.96
es/full/minify/libraries/moment
52496464
ns/iter (± 380899
)53676939
ns/iter (± 330231
)0.98
es/full/minify/libraries/react
18943610
ns/iter (± 83851
)19743168
ns/iter (± 267956
)0.96
es/full/minify/libraries/terser
247181343
ns/iter (± 2809917
)259859527
ns/iter (± 2917083
)0.95
es/full/minify/libraries/three
438388012
ns/iter (± 24985808
)477643943
ns/iter (± 5658769
)0.92
es/full/minify/libraries/typescript
3000023682
ns/iter (± 12683321
)3288007972
ns/iter (± 17911378
)0.91
es/full/minify/libraries/victory
663531396
ns/iter (± 9980992
)686275753
ns/iter (± 7983378
)0.97
es/full/minify/libraries/vue
139623880
ns/iter (± 7243646
)133471319
ns/iter (± 2100007
)1.05
es/full/codegen/es3
27440
ns/iter (± 40
)27591
ns/iter (± 60
)0.99
es/full/codegen/es5
27513
ns/iter (± 49
)27589
ns/iter (± 42
)1.00
es/full/codegen/es2015
27516
ns/iter (± 40
)27623
ns/iter (± 54
)1.00
es/full/codegen/es2016
27484
ns/iter (± 28
)27582
ns/iter (± 38
)1.00
es/full/codegen/es2017
27454
ns/iter (± 43
)27573
ns/iter (± 51
)1.00
es/full/codegen/es2018
27487
ns/iter (± 46
)27544
ns/iter (± 62
)1.00
es/full/codegen/es2019
27530
ns/iter (± 40
)27588
ns/iter (± 33
)1.00
es/full/codegen/es2020
27480
ns/iter (± 37
)27603
ns/iter (± 82
)1.00
es/full/all/es3
167799668
ns/iter (± 1875658
)170253867
ns/iter (± 3473648
)0.99
es/full/all/es5
157142581
ns/iter (± 3502055
)159807357
ns/iter (± 3601818
)0.98
es/full/all/es2015
120166192
ns/iter (± 902495
)120832784
ns/iter (± 1718601
)0.99
es/full/all/es2016
118520849
ns/iter (± 542854
)119675352
ns/iter (± 1994879
)0.99
es/full/all/es2017
117706169
ns/iter (± 977039
)118464402
ns/iter (± 1623128
)0.99
es/full/all/es2018
116732374
ns/iter (± 564493
)117956951
ns/iter (± 1668312
)0.99
es/full/all/es2019
115613290
ns/iter (± 1140164
)117473040
ns/iter (± 1498489
)0.98
es/full/all/es2020
111478868
ns/iter (± 562029
)112291656
ns/iter (± 2626979
)0.99
es/full/parser
512444
ns/iter (± 6920
)511558
ns/iter (± 8650
)1.00
es/full/base/fixer
22066
ns/iter (± 68
)22218
ns/iter (± 35
)0.99
es/full/base/resolver_and_hygiene
78636
ns/iter (± 216
)78517
ns/iter (± 97
)1.00
serialization of ast node
138
ns/iter (± 0
)144
ns/iter (± 0
)0.96
serialization of serde
124
ns/iter (± 0
)127
ns/iter (± 0
)0.98
css/minify/libraries/bootstrap
26919346
ns/iter (± 76220
)27046535
ns/iter (± 99164
)1.00
css/visitor/compare/clone
2082848
ns/iter (± 4896
)2089243
ns/iter (± 16173
)1.00
css/visitor/compare/visit_mut_span
2243161
ns/iter (± 5127
)2262021
ns/iter (± 3896
)0.99
css/visitor/compare/visit_mut_span_panic
2297752
ns/iter (± 8713
)2314377
ns/iter (± 5749
)0.99
css/visitor/compare/fold_span
2981484
ns/iter (± 37204
)2973867
ns/iter (± 21117
)1.00
css/visitor/compare/fold_span_panic
3110372
ns/iter (± 11360
)3104845
ns/iter (± 24288
)1.00
css/lexer/bootstrap_5_1_3
5205471
ns/iter (± 36256
)5180615
ns/iter (± 1248
)1.00
css/lexer/foundation_6_7_4
4422622
ns/iter (± 666
)4406749
ns/iter (± 1550
)1.00
css/lexer/tailwind_3_1_1
830543
ns/iter (± 479
)831449
ns/iter (± 215
)1.00
css/parser/bootstrap_5_1_3
20619402
ns/iter (± 132303
)20633481
ns/iter (± 23123
)1.00
css/parser/foundation_6_7_4
16534417
ns/iter (± 36692
)16526735
ns/iter (± 50213
)1.00
css/parser/tailwind_3_1_1
3197659
ns/iter (± 983
)3187721
ns/iter (± 4977
)1.00
es/codegen/colors
332466
ns/iter (± 186799
)327656
ns/iter (± 184310
)1.01
es/codegen/large
1213847
ns/iter (± 638900
)1317456
ns/iter (± 700906
)0.92
es/codegen/with-parser/colors
46577
ns/iter (± 390
)45919
ns/iter (± 319
)1.01
es/codegen/with-parser/large
511041
ns/iter (± 1332
)512102
ns/iter (± 1530
)1.00
es/minify/libraries/antd
1558965036
ns/iter (± 41307947
)1502249247
ns/iter (± 12240743
)1.04
es/minify/libraries/d3
295510326
ns/iter (± 4354042
)285628186
ns/iter (± 5474208
)1.03
es/minify/libraries/echarts
1122750872
ns/iter (± 46174284
)1268655537
ns/iter (± 7637108
)0.88
es/minify/libraries/jquery
83067135
ns/iter (± 1260605
)79534946
ns/iter (± 1285335
)1.04
es/minify/libraries/lodash
101761087
ns/iter (± 973827
)97702484
ns/iter (± 1527439
)1.04
es/minify/libraries/moment
47665255
ns/iter (± 482377
)46275312
ns/iter (± 384883
)1.03
es/minify/libraries/react
16853037
ns/iter (± 298960
)17327658
ns/iter (± 215725
)0.97
es/minify/libraries/terser
208326575
ns/iter (± 2366821
)218184250
ns/iter (± 2675295
)0.95
es/minify/libraries/three
364694851
ns/iter (± 8489963
)394440249
ns/iter (± 7841759
)0.92
es/minify/libraries/typescript
2574257962
ns/iter (± 10507572
)2849935328
ns/iter (± 15001807
)0.90
es/minify/libraries/victory
570466048
ns/iter (± 15295365
)608583045
ns/iter (± 10804419
)0.94
es/minify/libraries/vue
116655060
ns/iter (± 4423715
)119587427
ns/iter (± 2734028
)0.98
es/visitor/compare/clone
2438470
ns/iter (± 39319
)2398978
ns/iter (± 22417
)1.02
es/visitor/compare/visit_mut_span
2811265
ns/iter (± 2720
)2773451
ns/iter (± 52536
)1.01
es/visitor/compare/visit_mut_span_panic
2859335
ns/iter (± 3173
)2818886
ns/iter (± 5724
)1.01
es/visitor/compare/fold_span
3963409
ns/iter (± 11429
)3933738
ns/iter (± 6864
)1.01
es/visitor/compare/fold_span_panic
4125503
ns/iter (± 71228
)4054650
ns/iter (± 9077
)1.02
es/lexer/colors
17170
ns/iter (± 14
)17235
ns/iter (± 35
)1.00
es/lexer/angular
8213584
ns/iter (± 11472
)8214843
ns/iter (± 2060
)1.00
es/lexer/backbone
1069540
ns/iter (± 392
)1071218
ns/iter (± 646
)1.00
es/lexer/jquery
5937745
ns/iter (± 4234
)5950367
ns/iter (± 5188
)1.00
es/lexer/jquery mobile
9141494
ns/iter (± 4421
)9162235
ns/iter (± 4556
)1.00
es/lexer/mootools
4659290
ns/iter (± 2615
)4668230
ns/iter (± 2496
)1.00
es/lexer/underscore
893837
ns/iter (± 497
)895010
ns/iter (± 380
)1.00
es/lexer/three
27835717
ns/iter (± 12550
)27867692
ns/iter (± 14292
)1.00
es/lexer/yui
5030143
ns/iter (± 3750
)5056598
ns/iter (± 1617
)0.99
es/parser/colors
31414
ns/iter (± 101
)30108
ns/iter (± 184
)1.04
es/parser/angular
15815396
ns/iter (± 99112
)15452448
ns/iter (± 316746
)1.02
es/parser/backbone
2305423
ns/iter (± 6601
)2292329
ns/iter (± 12412
)1.01
es/parser/jquery
12401949
ns/iter (± 47305
)12417463
ns/iter (± 60911
)1.00
es/parser/jquery mobile
19615981
ns/iter (± 96056
)19750669
ns/iter (± 324054
)0.99
es/parser/mootools
9503324
ns/iter (± 21482
)9514956
ns/iter (± 36883
)1.00
es/parser/underscore
1962407
ns/iter (± 11597
)1937814
ns/iter (± 10746
)1.01
es/parser/three
57345315
ns/iter (± 574452
)58204744
ns/iter (± 649800
)0.99
es/parser/yui
9561154
ns/iter (± 45923
)9469659
ns/iter (± 49011
)1.01
es/preset-env/usage/builtin_type
139559
ns/iter (± 31145
)145033
ns/iter (± 33348
)0.96
es/preset-env/usage/property
21032
ns/iter (± 58
)21174
ns/iter (± 91
)0.99
es/resolver/typescript
109129948
ns/iter (± 1636515
)121244946
ns/iter (± 2375826
)0.90
es/fixer/typescript
86634818
ns/iter (± 3510518
)97635328
ns/iter (± 5341109
)0.89
es/hygiene/typescript
168819139
ns/iter (± 1081812
)191337845
ns/iter (± 1225294
)0.88
es/resolver_with_hygiene/typescript
302860220
ns/iter (± 2130832
)330769293
ns/iter (± 2045221
)0.92
es/visitor/base-perf/module_clone
76590
ns/iter (± 1809
)75214
ns/iter (± 980
)1.02
es/visitor/base-perf/fold_empty
86029
ns/iter (± 433
)86693
ns/iter (± 986
)0.99
es/visitor/base-perf/fold_noop_impl_all
86448
ns/iter (± 1163
)87071
ns/iter (± 977
)0.99
es/visitor/base-perf/fold_noop_impl_vec
86534
ns/iter (± 1487
)87644
ns/iter (± 915
)0.99
es/visitor/base-perf/boxing_boxed_clone
56
ns/iter (± 0
)54
ns/iter (± 0
)1.04
es/visitor/base-perf/boxing_unboxed_clone
59
ns/iter (± 0
)58
ns/iter (± 0
)1.02
es/visitor/base-perf/boxing_boxed
102
ns/iter (± 0
)102
ns/iter (± 0
)1
es/visitor/base-perf/boxing_unboxed
102
ns/iter (± 0
)103
ns/iter (± 0
)0.99
es/visitor/base-perf/visit_contains_this
3588
ns/iter (± 56
)3664
ns/iter (± 106
)0.98
es/base/parallel/resolver/typescript
5347031256
ns/iter (± 388772925
)5313514379
ns/iter (± 414906563
)1.01
es/base/parallel/hygiene/typescript
1993638482
ns/iter (± 24039035
)2252731443
ns/iter (± 39212756
)0.88
misc/visitors/time-complexity/time 5
93
ns/iter (± 0
)106
ns/iter (± 0
)0.88
misc/visitors/time-complexity/time 10
328
ns/iter (± 4
)345
ns/iter (± 0
)0.95
misc/visitors/time-complexity/time 15
634
ns/iter (± 0
)672
ns/iter (± 0
)0.94
misc/visitors/time-complexity/time 20
1197
ns/iter (± 4
)1254
ns/iter (± 0
)0.95
misc/visitors/time-complexity/time 40
6144
ns/iter (± 1
)6819
ns/iter (± 12
)0.90
misc/visitors/time-complexity/time 60
15517
ns/iter (± 24
)17185
ns/iter (± 7
)0.90
es/full-target/es2016
188333
ns/iter (± 428
)187487
ns/iter (± 376
)1.00
es/full-target/es2017
183372
ns/iter (± 397
)180948
ns/iter (± 454
)1.01
es/full-target/es2018
172652
ns/iter (± 620
)170318
ns/iter (± 460
)1.01
es2020_nullish_coalescing
66805
ns/iter (± 4960
)66002
ns/iter (± 500
)1.01
es2020_optional_chaining
96327
ns/iter (± 6612
)94357
ns/iter (± 942
)1.02
es2022_class_properties
93971
ns/iter (± 207
)92832
ns/iter (± 121
)1.01
es2018_object_rest_spread
71921
ns/iter (± 196
)70618
ns/iter (± 164
)1.02
es2019_optional_catch_binding
61421
ns/iter (± 242
)60008
ns/iter (± 165
)1.02
es2017_async_to_generator
61866
ns/iter (± 182
)60659
ns/iter (± 110
)1.02
es2016_exponentiation
65405
ns/iter (± 104
)63833
ns/iter (± 129
)1.02
es2015_arrow
70817
ns/iter (± 176
)68563
ns/iter (± 262
)1.03
es2015_block_scoped_fn
66246
ns/iter (± 144
)65030
ns/iter (± 174
)1.02
es2015_block_scoping
151173
ns/iter (± 10838
)155635
ns/iter (± 8599
)0.97
es2015_classes
116761
ns/iter (± 358
)115402
ns/iter (± 370
)1.01
es2015_computed_props
61484
ns/iter (± 150
)59925
ns/iter (± 85
)1.03
es2015_destructuring
116532
ns/iter (± 288
)115494
ns/iter (± 274
)1.01
es2015_duplicate_keys
64175
ns/iter (± 60
)62441
ns/iter (± 93
)1.03
es2015_parameters
80367
ns/iter (± 169
)78195
ns/iter (± 202
)1.03
es2015_fn_name
66767
ns/iter (± 406
)65592
ns/iter (± 545
)1.02
es2015_for_of
64403
ns/iter (± 115
)63035
ns/iter (± 118
)1.02
es2015_instanceof
63419
ns/iter (± 83
)61942
ns/iter (± 85
)1.02
es2015_shorthand_property
61212
ns/iter (± 66
)59918
ns/iter (± 92
)1.02
es2015_spread
61206
ns/iter (± 133
)60122
ns/iter (± 98
)1.02
es2015_sticky_regex
62808
ns/iter (± 98
)61058
ns/iter (± 121
)1.03
es2015_typeof_symbol
62592
ns/iter (± 91
)61285
ns/iter (± 132
)1.02
es/transform/baseline/base
51968
ns/iter (± 136
)50638
ns/iter (± 92
)1.03
es/transform/baseline/common_reserved_word
62745
ns/iter (± 178
)61397
ns/iter (± 110
)1.02
es/transform/baseline/common_typescript
169862
ns/iter (± 200
)141600
ns/iter (± 3640
)1.20
es/target/es3
169868
ns/iter (± 369
)168993
ns/iter (± 326
)1.01
es/target/es2015
633147
ns/iter (± 3155
)629371
ns/iter (± 1088
)1.01
es/target/es2016
65300
ns/iter (± 153
)63927
ns/iter (± 180
)1.02
es/target/es2017
61979
ns/iter (± 157
)60761
ns/iter (± 78
)1.02
es/target/es2018
81769
ns/iter (± 98
)80633
ns/iter (± 225
)1.01
es/target/es2020
132736
ns/iter (± 136
)131816
ns/iter (± 322
)1.01
babelify-only
672293
ns/iter (± 995
)672148
ns/iter (± 1487
)1.00
parse_and_babelify_angular
42328559
ns/iter (± 1187386
)41143391
ns/iter (± 535060
)1.03
parse_and_babelify_backbone
5356164
ns/iter (± 28162
)5357855
ns/iter (± 40683
)1.00
parse_and_babelify_jquery
31530283
ns/iter (± 320228
)32646330
ns/iter (± 459751
)0.97
parse_and_babelify_jquery_mobile
53394251
ns/iter (± 655577
)55211582
ns/iter (± 1414070
)0.97
parse_and_babelify_mootools
32373073
ns/iter (± 349943
)33815679
ns/iter (± 471058
)0.96
parse_and_babelify_underscore
4341349
ns/iter (± 141993
)4281416
ns/iter (± 59813
)1.01
parse_and_babelify_yui
30838423
ns/iter (± 353773
)32722623
ns/iter (± 765088
)0.94
html/minify/document/css_spec
41753992
ns/iter (± 626432
)41740825
ns/iter (± 238329
)1.00
html/minify/document/github
17237361
ns/iter (± 33008
)17408669
ns/iter (± 40623
)0.99
html/minify/document/stackoverflow
15567762
ns/iter (± 43955
)15559179
ns/iter (± 43297
)1.00
html/minify/document_fragment/css_spec
39754401
ns/iter (± 383066
)41862466
ns/iter (± 269595
)0.95
html/minify/document_fragment/github
16613414
ns/iter (± 168150
)17141092
ns/iter (± 27882
)0.97
html/minify/document_fragment/stackoverflow
15080906
ns/iter (± 35267
)15764923
ns/iter (± 36291
)0.96
html/document/visitor/compare/clone
339947
ns/iter (± 1842
)339021
ns/iter (± 4011
)1.00
html/document/visitor/compare/visit_mut_span
361693
ns/iter (± 1744
)366108
ns/iter (± 1735
)0.99
html/document/visitor/compare/visit_mut_span_panic
374921
ns/iter (± 3235
)373900
ns/iter (± 1159
)1.00
html/document/visitor/compare/fold_span
403585
ns/iter (± 1955
)401919
ns/iter (± 1075
)1.00
html/document/visitor/compare/fold_span_panic
455176
ns/iter (± 2087
)454909
ns/iter (± 2708
)1.00
html/document_fragment/visitor/compare/clone
333618
ns/iter (± 2157
)333559
ns/iter (± 1764
)1.00
html/document_fragment/visitor/compare/visit_mut_span
365031
ns/iter (± 2283
)359805
ns/iter (± 2145
)1.01
html/document_fragment/visitor/compare/visit_mut_span_panic
368830
ns/iter (± 1692
)367756
ns/iter (± 2347
)1.00
html/document_fragment/visitor/compare/fold_span
403702
ns/iter (± 1883
)403947
ns/iter (± 2300
)1.00
html/document_fragment/visitor/compare/fold_span_panic
454263
ns/iter (± 1610
)458763
ns/iter (± 2513
)0.99
html/lexer/css_2021_spec
15494293
ns/iter (± 17337
)15617892
ns/iter (± 9260
)0.99
html/lexer/github_com_17_05_2022
6005660
ns/iter (± 5578
)6074076
ns/iter (± 6409
)0.99
html/lexer/stackoverflow_com_17_05_2022
5603026
ns/iter (± 7744
)5669093
ns/iter (± 6908
)0.99
html/parser/parser_document/css_2021_spec
25889167
ns/iter (± 303429
)25532707
ns/iter (± 161006
)1.01
html/parser/parser_document/github_com_17_05_2022
8764073
ns/iter (± 4372
)8744169
ns/iter (± 3462
)1.00
html/parser/parser_document/stackoverflow_com_17_05_2022
7737208
ns/iter (± 22563
)7707258
ns/iter (± 3566
)1.00
html/parser/parser_document_fragment/css_2021_spec
25885643
ns/iter (± 182856
)25712038
ns/iter (± 122196
)1.01
html/parser/parser_document_fragment/github_com_17_05_2022
8757094
ns/iter (± 5342
)8759074
ns/iter (± 4158
)1.00
html/parser/parser_document_fragment/stackoverflow_com_17_05_2022
7711193
ns/iter (± 4434
)7723481
ns/iter (± 6282
)1.00
This comment was automatically generated by workflow using github-action-benchmark.