BlogDocs

refactor(test): better infra for formatting(#2189)

Merged
Comparing
chore/better-formatter-testing
(
68b24c3
) with
main
(
35ba975
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
82
NEW
0
DROPPED
0
IGNORED
11

Benchmarks

Passed

parser.ts[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::parser.ts[cached]
+5%
6.4 ms
6.1 ms
pure.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::pure.css[uncached]
+4%
4.7 ms
4.5 ms
js_formatter[react.production.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[react.production.min.js]
+3%
7.4 ms
7.2 ms
react.production.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::react.production.min.js[uncached]
+2%
2.2 ms
2.2 ms
compiler.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::compiler.js[cached]
+2%
148.4 ms
145.6 ms
tachyons.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::tachyons.css[cached]
+2%
21.3 ms
20.9 ms
bootstrap.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::bootstrap.css[cached]
+1%
46.6 ms
46.1 ms
materialize.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::materialize.css[uncached]
+1%
36.2 ms
35.9 ms
parser.ts[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::parser.ts[uncached]
+1%
6.9 ms
6.8 ms
compiler.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::compiler.js[uncached]
+1%
163 ms
161.5 ms
json_formatter[dojo.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[dojo.js]
+1%
28.8 ms
28.5 ms
react-dom.production.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::react-dom.production.min.js[uncached]
+1%
39.4 ms
39.1 ms
canada.json[uncached]
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::canada.json[uncached]
+1%
221.5 ms
220 ms
vue.global.prod.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::vue.global.prod.js[uncached]
+1%
47.4 ms
47.1 ms
three.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::three.min.js[uncached]
+1%
149 ms
148.2 ms
js_formatter[pixi.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[pixi.min.js]
0%
490.3 ms
487.9 ms
three.min.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::three.min.js[cached]
0%
139.1 ms
138.5 ms
d3.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::d3.min.js[uncached]
0%
112.9 ms
112.5 ms
math.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::math.js[cached]
0%
202.4 ms
201.7 ms
js_formatter[tex-chtml-full.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[tex-chtml-full.js]
0%
1.1 s
1.1 s
json_formatter[pixi.min.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[pixi.min.js]
0%
489.5 ms
487.7 ms
analyzer[index.js]
xtask/bench/benches/analyzer.rs::analyzer::bench_analyzer::analyzer[index.js]
0%
32.2 ms
32.1 ms
package-lock.json[uncached]
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::package-lock.json[uncached]
0%
5.9 ms
5.9 ms
tex-chtml-full.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::tex-chtml-full.js[uncached]
0%
286.4 ms
285.6 ms
js_formatter[d3.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[d3.min.js]
0%
445 ms
443.7 ms
js_formatter[vue.global.prod.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[vue.global.prod.js]
0%
181.7 ms
181.2 ms
tachyons.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::tachyons.css[uncached]
0%
24.3 ms
24.3 ms
materialize.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::materialize.css[cached]
0%
33.2 ms
33.1 ms
analyzer[css.js]
xtask/bench/benches/analyzer.rs::analyzer::bench_analyzer::analyzer[css.js]
0%
14.9 ms
14.9 ms
jquery.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::jquery.min.js[uncached]
0%
29 ms
28.9 ms
tex-chtml-full.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::tex-chtml-full.js[cached]
0%
269.4 ms
268.9 ms
typescript.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::typescript.js[cached]
0%
961.9 ms
960.4 ms
json_formatter[d3.min.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[d3.min.js]
0%
444.4 ms
443.7 ms
foundation.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::foundation.css[cached]
0%
29.9 ms
29.8 ms
js_formatter[compiler.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[compiler.js]
0%
545.5 ms
544.7 ms
semantic.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::semantic.css[uncached]
0%
149.1 ms
149 ms
checker.ts[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::checker.ts[cached]
0%
254 ms
253.7 ms
json_formatter[math.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[math.js]
0%
885.9 ms
885.1 ms
analyzer[parser.ts]
xtask/bench/benches/analyzer.rs::analyzer::bench_analyzer::analyzer[parser.ts]
0%
51.1 ms
51.1 ms
bulma.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::bulma.css[cached]
0%
44 ms
44 ms
semantic.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::semantic.css[cached]
0%
140.2 ms
140.1 ms
json_formatter[tex-chtml-full.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[tex-chtml-full.js]
0%
1.1 s
1.1 s
jquery.min.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::jquery.min.js[cached]
0%
27.7 ms
27.6 ms
js_formatter[checker.ts]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[checker.ts]
0%
926 ms
925.8 ms
typescript.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::typescript.js[uncached]
0%
1.1 s
1.1 s
analyzer[lint.ts]
xtask/bench/benches/analyzer.rs::analyzer::bench_analyzer::analyzer[lint.ts]
0%
26.6 ms
26.6 ms
d3.min.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::d3.min.js[cached]
0%
104 ms
104 ms
json_formatter[jquery.min.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[jquery.min.js]
0%
119.3 ms
119.3 ms
ios.d.ts[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::ios.d.ts[uncached]
0%
286.3 ms
286.4 ms
js_formatter[ios.d.ts]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[ios.d.ts]
0%
786.7 ms
786.8 ms
math.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::math.js[uncached]
0%
217.3 ms
217.4 ms
analyzer[typescript.ts]
xtask/bench/benches/analyzer.rs::analyzer::bench_analyzer::analyzer[typescript.ts]
0%
74.3 ms
74.3 ms
js_formatter[math.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[math.js]
0%
884 ms
884.5 ms
bootstrap.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::bootstrap.css[uncached]
0%
50.1 ms
50.1 ms
json_formatter[typescript.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[typescript.js]
0%
3.5 s
3.5 s
full.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::full.css[uncached]
0%
525.5 ms
526 ms
json_formatter[react.production.min.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[react.production.min.js]
0%
7.4 ms
7.4 ms
json_formatter[compiler.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[compiler.js]
0%
543.4 ms
544.1 ms
analyzer[router.ts]
xtask/bench/benches/analyzer.rs::analyzer::bench_analyzer::analyzer[router.ts]
0%
14.9 ms
14.9 ms
json_formatter[three.min.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[three.min.js]
0%
593.2 ms
594 ms
analyzer[statement.ts]
xtask/bench/benches/analyzer.rs::analyzer::bench_analyzer::analyzer[statement.ts]
0%
45.9 ms
46 ms
js_formatter[dojo.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[dojo.js]
0%
28.8 ms
28.9 ms
bulma.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::bulma.css[uncached]
0%
48 ms
48.1 ms
json_formatter[react-dom.production.min.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[react-dom.production.min.js]
0%
142.9 ms
143.5 ms
foundation.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::foundation.css[uncached]
0%
31.7 ms
31.9 ms
js_formatter[three.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[three.min.js]
0%
592 ms
594.8 ms
pixi.min.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::pixi.min.js[cached]
-1%
122.2 ms
122.9 ms
canada.json[cached]
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::canada.json[cached]
-1%
168.6 ms
169.6 ms
full.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::full.css[cached]
-1%
499.5 ms
502.5 ms
js_formatter[react-dom.production.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[react-dom.production.min.js]
-1%
139.1 ms
140.1 ms
js_formatter[typescript.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[typescript.js]
-1%
3.5 s
3.5 s
react-dom.production.min.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::react-dom.production.min.js[cached]
-1%
35.9 ms
36.2 ms
js_formatter[jquery.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[jquery.min.js]
-1%
118.2 ms
119.3 ms
json_formatter[vue.global.prod.js]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[vue.global.prod.js]
-1%
180.3 ms
182.1 ms
vue.global.prod.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::vue.global.prod.js[cached]
-1%
44 ms
44.4 ms
ios.d.ts[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::ios.d.ts[cached]
-1%
259.7 ms
262.3 ms
pixi.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::pixi.min.js[uncached]
-1%
135.6 ms
137.2 ms
checker.ts[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::checker.ts[uncached]
-1%
277.5 ms
281.1 ms
js_formatter[parser.ts]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[parser.ts]
-1%
20.4 ms
20.7 ms
package-lock.json[cached]
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::package-lock.json[cached]
-2%
5.6 ms
5.7 ms
js_formatter[router.ts]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[router.ts]
-3%
6.9 ms
7.1 ms
pure.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::pure.css[cached]
-4%
3.9 ms
4 ms

Ignored

dojo.js[cached]Ignored
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::dojo.js[cached]
-3%
8.3 ms
8.5 ms
dojo.js[uncached]Ignored
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::dojo.js[uncached]
-1%
9.4 ms
9.5 ms
react.production.min.js[cached]Ignored
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::react.production.min.js[cached]
-2%
1.9 ms
1.9 ms
router.ts[cached]Ignored
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::router.ts[cached]
+2%
2.1 ms
2.1 ms
router.ts[uncached]Ignored
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::router.ts[uncached]
0%
2.4 ms
2.4 ms
big5-added.json[cached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::big5-added.json[cached]
0%
440.6 µs
439.4 µs
big5-added.json[uncached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::big5-added.json[uncached]
0%
548.1 µs
548.1 µs
db.json[cached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::db.json[cached]
0%
12.9 ms
12.9 ms
db.json[uncached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::db.json[uncached]
+2%
15.6 ms
15.3 ms
eucjp.json[cached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::eucjp.json[cached]
+15%
942.6 µs
816.6 µs
eucjp.json[uncached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::eucjp.json[uncached]
0%
965.5 µs
969.1 µs

Commits

Click on a commit to change the comparison range
base
main
35ba975
0%
feat: contribution guide
710ce13
8 months ago
by ematipico
0%
Apply suggestions from code review Co-authored-by: Superchupu <53496941+SuperchupuDev@users.noreply.github.com>
68b24c3
8 months ago
by ematipico
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.