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

feat(minifier): minimize switch statements

#17523
Comparing
armano2:feat/minimize-switch
(
5118bba
) with
main
(
6ec08e8
)
CodSpeed Performance Gauge
0%
Untouched
38
Skipped
7

Benchmarks

45 total
formatter[core.js]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
2 ms2 ms
formatter[next.ts]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
2.8 ms2.8 ms
codegen[binder.ts]
tasks/benchmark/benches/codegen.rs::codegen::bench_codegen
CodSpeed Performance Gauge
0%
4.3 ms4.3 ms
transformer[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/transformer.rs::transformer::bench_transformer
CodSpeed Performance Gauge
0%
135.4 µs135.3 µs
mangler[react.development.js]
tasks/benchmark/benches/minifier.rs::minifier::bench_mangler
CodSpeed Performance Gauge
0%
250.9 µs250.8 µs
formatter[Search.tsx]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
1.9 ms1.9 ms
codegen[react.development.js]
tasks/benchmark/benches/codegen.rs::codegen::bench_codegen
CodSpeed Performance Gauge
0%
1.9 ms1.9 ms
isolated-declarations[vue-id.ts]
tasks/benchmark/benches/transformer.rs::transformer::bench_isolated_declarations
CodSpeed Performance Gauge
0%
57 ms57 ms
parser[react.development.js]
tasks/benchmark/benches/parser.rs::parser::bench_parser
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
transformer[react.development.js]
tasks/benchmark/benches/transformer.rs::transformer::bench_transformer
CodSpeed Performance Gauge
0%
721.6 µs721.4 µs
semantic[cal.com.tsx]
tasks/benchmark/benches/semantic.rs::semantic::bench_semantic
CodSpeed Performance Gauge
0%
21.2 ms21.2 ms
parser[binder.ts]
tasks/benchmark/benches/parser.rs::parser::bench_parser
CodSpeed Performance Gauge
0%
3.1 ms3.1 ms
formatter[App.tsx]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
49 ms49 ms
semantic[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/semantic.rs::semantic::bench_semantic
CodSpeed Performance Gauge
0%
62.7 µs62.7 µs
estree[checker.ts]
tasks/benchmark/benches/parser.rs::parser::bench_estree
CodSpeed Performance Gauge
0%
105.1 ms105.1 ms
lexer[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/lexer.rs::lexer::bench_lexer
CodSpeed Performance Gauge
0%
21.1 µs21.1 µs
lexer[cal.com.tsx]
tasks/benchmark/benches/lexer.rs::lexer::bench_lexer
CodSpeed Performance Gauge
0%
5.5 ms5.5 ms
parser[cal.com.tsx]
tasks/benchmark/benches/parser.rs::parser::bench_parser
CodSpeed Performance Gauge
0%
25.4 ms25.4 ms
transformer[binder.ts]
tasks/benchmark/benches/transformer.rs::transformer::bench_transformer
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
formatter[types.ts]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
14.8 ms14.8 ms
semantic[react.development.js]
tasks/benchmark/benches/semantic.rs::semantic::bench_semantic
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
transformer[cal.com.tsx]
tasks/benchmark/benches/transformer.rs::transformer::bench_transformer
CodSpeed Performance Gauge
0%
26.4 ms26.5 ms
lexer[binder.ts]
tasks/benchmark/benches/lexer.rs::lexer::bench_lexer
CodSpeed Performance Gauge
0%
884.8 µs884.9 µs
parser[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/parser.rs::parser::bench_parser
CodSpeed Performance Gauge
0%
80.3 µs80.3 µs
semantic[binder.ts]
tasks/benchmark/benches/semantic.rs::semantic::bench_semantic
CodSpeed Performance Gauge
0%
3.1 ms3.1 ms

Commits

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