Avatar for the oxc-project user
oxc-project
json-strip-comments
BlogDocsChangelog

fix: preserve newlines in block comments to match JavaScript behavior

#120Closed
Comparing
fix/preserve-newlines-in-comments
(
5d255b2
) with
main
(
eab81e0
)
CodSpeed Performance Gauge
-19%
Regression
4

Benchmarks

4 total
minimal_comments
benches/strip.rs::strip::bench
CodSpeed Performance Gauge
-19%
2.4 µs3 µs
large_with_comments
benches/strip.rs::strip::bench
CodSpeed Performance Gauge
-15%
58.2 µs68.5 µs
tsconfig
benches/strip.rs::strip::bench
CodSpeed Performance Gauge
-10%
19.2 µs21.4 µs
no_comments
benches/strip.rs::strip::bench
CodSpeed Performance Gauge
-9%
3.9 µs4.3 µs

Commits

Click on a commit to change the comparison range
Base
main
eab81e0
-18.07%
fix: preserve newlines in block comments to match JavaScript behavior
f40d55a
2 months ago
by Boshen
-0.8%
perf: optimize newline preservation using memchr
5d255b2
2 months ago
by Boshen
© 2026 CodSpeed Technology
Home Terms Privacy Docs