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

feat(minifier): minimize switch statements

#17523
Comparing
armano2:feat/minimize-switch
(
732ba9a
) with
main
(
e948498
)
CodSpeed Performance Gauge
0%
Untouched
52
Skipped
19

Benchmarks

71 total
mangler[RadixUIAdoptionSection.jsx_keep_names]
tasks/benchmark/benches/minifier.rs::minifier::bench_mangler
CodSpeed Performance Gauge
-1%
19.1 µs*19.4 µs
mangler[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/minifier.rs::minifier::bench_mangler
CodSpeed Performance Gauge
-1%
15.2 µs*15.3 µs
codegen[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/codegen.rs::codegen::bench_codegen
CodSpeed Performance Gauge
-1%
124.6 µs*125.5 µs
codegen[kitchen-sink.tsx]
tasks/benchmark/benches/codegen.rs::codegen::bench_codegen
CodSpeed Performance Gauge
0%
23.1 ms*23.2 ms
semantic[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/semantic.rs::semantic::bench_semantic
CodSpeed Performance Gauge
0%
52.5 µs*52.4 µs
parser[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/parser.rs::parser::bench_parser
CodSpeed Performance Gauge
0%
82.9 µs*83.2 µs
pipeline[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/pipeline.rs::pipeline::bench_pipeline
CodSpeed Performance Gauge
0%
330.8 µs*329.8 µs
pipeline[App.tsx]
tasks/benchmark/benches/pipeline.rs::pipeline::bench_pipeline
CodSpeed Performance Gauge
0%
36.5 ms*36.4 ms
formatter[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
419.3 µs*418.4 µs
formatter[index.tsx]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
3.9 ms*3.9 ms
minifier[react.development.js]
tasks/benchmark/benches/minifier.rs::minifier::bench_minifier
CodSpeed Performance Gauge
0%
2.5 ms*2.4 ms
codegen[App.tsx]
tasks/benchmark/benches/codegen.rs::codegen::bench_codegen
CodSpeed Performance Gauge
0%
10.9 ms*10.9 ms
formatter[next.ts]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
2.3 ms*2.3 ms
pipeline[kitchen-sink.tsx]
tasks/benchmark/benches/pipeline.rs::pipeline::bench_pipeline
CodSpeed Performance Gauge
0%
119.8 ms*120 ms
transformer[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/transformer.rs::transformer::bench_transformer
CodSpeed Performance Gauge
0%
135.1 µs*135.3 µs
pipeline[react.development.js]
tasks/benchmark/benches/pipeline.rs::pipeline::bench_pipeline
CodSpeed Performance Gauge
0%
5 ms*4.9 ms
codegen[react.development.js]
tasks/benchmark/benches/codegen.rs::codegen::bench_codegen
CodSpeed Performance Gauge
0%
1.9 ms*1.9 ms
transformer[kitchen-sink.tsx]
tasks/benchmark/benches/transformer.rs::transformer::bench_transformer
CodSpeed Performance Gauge
0%
16.1 ms*16.1 ms
transformer[react.development.js]
tasks/benchmark/benches/transformer.rs::transformer::bench_transformer
CodSpeed Performance Gauge
0%
724.2 µs*723.5 µs
minifier[binder.ts]
tasks/benchmark/benches/minifier.rs::minifier::bench_minifier
CodSpeed Performance Gauge
0%
3.6 ms*3.6 ms
semantic[react.development.js]
tasks/benchmark/benches/semantic.rs::semantic::bench_semantic
CodSpeed Performance Gauge
0%
977.2 µs*978.1 µs
formatter[core.js]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
CodSpeed Performance Gauge
0%
1.6 ms*1.6 ms
minifier[kitchen-sink.tsx]
tasks/benchmark/benches/minifier.rs::minifier::bench_minifier
CodSpeed Performance Gauge
0%
53.1 ms*53.1 ms
codegen[binder.ts]
tasks/benchmark/benches/codegen.rs::codegen::bench_codegen
CodSpeed Performance Gauge
0%
4.1 ms*4.1 ms
mangler[kitchen-sink.tsx]
tasks/benchmark/benches/minifier.rs::minifier::bench_mangler
CodSpeed Performance Gauge
0%
2.5 ms*2.5 ms

Commits

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