Avatar for the oxc-project user
oxc-project
oxc
BlogDocsChangelog

feat(minifier): minimize switch statements

#17523
Comparing
armano2:feat/minimize-switch
(
6f9d0d6
) with
main
(
8be4de7
)
CodSpeed Performance Gauge
0%
Untouched
44
Skipped
7

Benchmarks

51 total
minifier[cal.com.tsx]
tasks/benchmark/benches/minifier.rs::minifier::bench_minifier
CodSpeed Performance Gauge
+2%
40 ms*39.4 ms
codegen[cal.com.tsx]
tasks/benchmark/benches/codegen.rs::codegen::bench_codegen
CodSpeed Performance Gauge
+1%
35.2 ms*35 ms
mangler[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/minifier.rs::minifier::bench_mangler
CodSpeed Performance Gauge
0%
14.5 µs*14.5 µs
formatter[errors.ts]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
779.6 µs*778.2 µs
codegen[binder.ts]
tasks/benchmark/benches/codegen.rs::codegen::bench_codegen
CodSpeed Performance Gauge
0%
4.3 ms*4.3 ms
formatter[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
425 µs*424.5 µs
mangler[binder.ts]
tasks/benchmark/benches/minifier.rs::minifier::bench_mangler
CodSpeed Performance Gauge
0%
640.9 µs*640.4 µs
mangler[react.development.js]
tasks/benchmark/benches/minifier.rs::minifier::bench_mangler
CodSpeed Performance Gauge
0%
224 µs*223.8 µs
transformer[react.development.js]
tasks/benchmark/benches/transformer.rs::transformer::bench_transformer
CodSpeed Performance Gauge
0%
709 µs*708.5 µs
transformer[binder.ts]
tasks/benchmark/benches/transformer.rs::transformer::bench_transformer
CodSpeed Performance Gauge
0%
1.7 ms*1.7 ms
formatter[types.ts]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
14.4 ms*14.4 ms
mangler[RadixUIAdoptionSection.jsx_keep_names]
tasks/benchmark/benches/minifier.rs::minifier::bench_mangler
CodSpeed Performance Gauge
0%
20.2 µs*20.2 µs
lexer[react.development.js]
tasks/benchmark/benches/lexer.rs::lexer::bench_lexer
CodSpeed Performance Gauge
0%
362 µs*362 µs
formatter[App.tsx]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
49.5 ms*49.5 ms
lexer[cal.com.tsx]
tasks/benchmark/benches/lexer.rs::lexer::bench_lexer
CodSpeed Performance Gauge
0%
5.6 ms*5.6 ms
mangler[cal.com.tsx]
tasks/benchmark/benches/minifier.rs::minifier::bench_mangler
CodSpeed Performance Gauge
0%
2.6 ms*2.6 ms
estree_tokens[checker.ts]
tasks/benchmark/benches/parser.rs::parser::bench_estree_tokens
CodSpeed Performance Gauge
0%
81.2 ms*81.2 ms
estree[checker.ts]
tasks/benchmark/benches/parser.rs::parser::bench_estree
CodSpeed Performance Gauge
0%
95.3 ms*95.3 ms
lexer[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/lexer.rs::lexer::bench_lexer
CodSpeed Performance Gauge
0%
21.4 µs*21.4 µs
lexer[binder.ts]
tasks/benchmark/benches/lexer.rs::lexer::bench_lexer
CodSpeed Performance Gauge
0%
894.5 µs*894.5 µs
formatter[Search.tsx]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
1.9 ms*1.9 ms
parser[cal.com.tsx]
tasks/benchmark/benches/parser.rs::parser::bench_parser
CodSpeed Performance Gauge
0%
26.4 ms*26.4 ms
parser[binder.ts]
tasks/benchmark/benches/parser.rs::parser::bench_parser
CodSpeed Performance Gauge
0%
3.4 ms*3.4 ms
parser[react.development.js]
tasks/benchmark/benches/parser.rs::parser::bench_parser
CodSpeed Performance Gauge
0%
1.3 ms*1.3 ms
semantic[binder.ts]
tasks/benchmark/benches/semantic.rs::semantic::bench_semantic
CodSpeed Performance Gauge
0%
2.9 ms*2.9 ms

Commits

Click on a commit to change the comparison range
Base
main
8be4de7
-0.04%
feat(minifier): minimize switch statements
3215778
3 months ago
by armano2
+0.06%
fix: correct linting issues
1b6fe1d
3 months ago
by armano2
-0.01%
fix: remove side effect free last elements if there is no default
ff561dd
3 months ago
by armano2
-0.06%
fix: correct unit tests
5a3b0ef
3 months ago
by armano2
-0.06%
fix: correct generated ast
aaf37da
3 months ago
by armano2
+0.06%
fix: update code to support fallthrough
af30748
3 months ago
by armano2
+0.07%
Merge remote-tracking branch 'upstream/main' into feat/minimize-switch
634b17a
3 months ago
by armano2
+0.03%
Merge remote-tracking branch 'upstream/main' into feat/minimize-switch
167b36d
3 months ago
by armano2
-0.05%
fix: correct issue with inlining break with label
6db0a6f
3 months ago
by armano2
-0.03%
fix: cleanup
a31e9bf
3 months ago
by armano2
+0.08%
fix: apply changes from code review and add documentation
af1e336
3 months ago
by armano2
-0.08%
[autofix.ci] apply automated fixes
806ef4a
3 months ago
by autofix-ci[bot]
-0.06%
fix: disable all declarations and iterators in BreakFinder
414dff1
3 months ago
by armano2
-0.02%
Merge remote-tracking branch 'upstream/main' into feat/minimize-switch
41aeed9
3 months ago
by armano2
+0.07%
fix(minifier): improve removal of switch breaks from switch cases
c25274f
3 months ago
by armano2
+0.06%
fix: allow to remove empty case from end of switch if there is no default
0a9836b
3 months ago
by armano2
+0.01%
fix: correct bug with nested switches
87a59b3
3 months ago
by armano2
-0.04%
Merge remote-tracking branch 'upstream/main' into feat/minimize-switch
155deeb
3 months ago
by armano2
-0.01%
chore: update snapshots
5662f4b
3 months ago
by armano2
+0.01%
test: update tests
206fc44
3 months ago
by armano2
-0.14%
Merge remote-tracking branch 'upstream/main' into feat/minimize-switch
556b60b
3 months ago
by armano2
+0.09%
Merge remote-tracking branch 'upstream/main' into feat/minimize-switch
5118bba
3 months ago
by armano2
+0.12%
Merge remote-tracking branch 'upstream/main' into feat/minimize-switch
2d323c5
22 days ago
by armano2
-0.02%
chore: apply changes from code review
25d7f72
22 days ago
by armano2
-0.09%
fix: correct new lint error
67f87b5
22 days ago
by armano2
-0.04%
Merge branch 'main' into feat/minimize-switch
6f9d0d6
18 hours ago
by armano2
© 2026 CodSpeed Technology
Home Terms Privacy Docs