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

19 total
linter[cal.com.tsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
Skipped
582.1 ms*
codegen[cal.com.tsx]
tasks/benchmark/benches/codegen.rs::codegen::bench_codegen
Skipped
36.2 ms*
lexer[cal.com.tsx]
tasks/benchmark/benches/lexer.rs::lexer::bench_lexer
Skipped
5.9 ms*
semantic[cal.com.tsx]
tasks/benchmark/benches/semantic.rs::semantic::bench_semantic
Skipped
20.8 ms*
transformer[cal.com.tsx]
tasks/benchmark/benches/transformer.rs::transformer::bench_transformer
Skipped
26.9 ms*
parser[cal.com.tsx]
tasks/benchmark/benches/parser.rs::parser::bench_parser
Skipped
25.7 ms*
minifier[cal.com.tsx]
tasks/benchmark/benches/minifier.rs::minifier::bench_minifier
Skipped
34.9 ms*
mangler[cal.com.tsx]
tasks/benchmark/benches/minifier.rs::minifier::bench_mangler
Skipped
2.4 ms*
pipeline[cal.com.tsx]
tasks/benchmark/benches/pipeline.rs::pipeline::bench_pipeline
Skipped
131.2 ms*
react_compiler[App.tsx]
tasks/benchmark/benches/react_compiler.rs::react_compiler::bench_react_compiler
Skipped
33.7 ms*
react_compiler[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/react_compiler.rs::react_compiler::bench_react_compiler
Skipped
8.4 ms*
react_compiler[binder.ts]
tasks/benchmark/benches/react_compiler.rs::react_compiler::bench_react_compiler
Skipped
10 µs*
react_compiler[kitchen-sink.tsx]
tasks/benchmark/benches/react_compiler.rs::react_compiler::bench_react_compiler
Skipped
2.3 ms*
react_compiler[react.development.js]
tasks/benchmark/benches/react_compiler.rs::react_compiler::bench_react_compiler
Skipped
6.3 µs*
linter[react.development.js]
tasks/benchmark/benches/linter.rs::linter::bench_linter
Skipped
14.4 ms*
linter[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
Skipped
9 ms*
linter[binder.ts]
tasks/benchmark/benches/linter.rs::linter::bench_linter
Skipped
30.7 ms*
linter[kitchen-sink.tsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
Skipped
193.5 ms*
linter[App.tsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
Skipped
99.3 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