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

feat(minifier): minify `x ? 1 : 0` to `+x` or `+!!x`

#20594Merged
Comparing
costajohnt:feat/minify-ternary-numeric
(
6007da7
) with
main
(
2244984
)
CodSpeed Performance Gauge
0%
Untouched
44
Skipped
7
Archived
5

Benchmarks

7 total
formatter[binder.ts]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
Skipped
21.2 ms*
formatter[cal.com.tsx]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
Skipped
188.5 ms*
formatter[react.development.js]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
Skipped
10.7 ms*
linter[binder.ts]
tasks/benchmark/benches/linter.rs::linter::bench_linter
Skipped
51.4 ms*
linter[cal.com.tsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
Skipped
520 ms*
linter[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
Skipped
769 µs*
linter[react.development.js]
tasks/benchmark/benches/linter.rs::linter::bench_linter
Skipped
19.8 ms*

Commits

Click on a commit to change the comparison range
Base
main
2244984
+0.08%
chore: remove unused import and update snapshots
b8f9865
13 days ago
by costajohnt
+0.05%
fix(minifier): remove redundant match guards
6007da7
13 days ago
by costajohnt
© 2026 CodSpeed Technology
Home Terms Privacy Docs