Avatar for the webpack user
webpack
webpack-sources
BlogDocsChangelog

bench: stabilize prefix-source getPrefix() and original() cases

#207Merged
Comparing
claude/stabilize-prefix-source-bench
(
939f579
) with
main
(
adf17ec
)
CodSpeed Performance Gauge
-98%
Improvement
2
Regression
2
Untouched
157

Benchmarks

161 total
prefix-source: original()
benchmark/cases/prefix-source/index.bench.mjs
CodSpeed Performance Gauge
-98%
121 µs6,785.1 µs
prefix-source: getPrefix()
benchmark/cases/prefix-source/index.bench.mjs
CodSpeed Performance Gauge
-98%
120.7 µs6,646.1 µs
cached-source: source() (cached)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+20%
666.5 µs553.2 µs
cached-source: new CachedSource()
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+13%
367.7 µs326.2 µs
cached-source: size() (cached)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+2%
30.4 µs29.9 µs
replace-source: getReplacements()
benchmark/cases/replace-source/index.bench.mjs
CodSpeed Performance Gauge
-1%
1.2 ms1.3 ms
cached-source: buffers() (cold, wraps ConcatSource x10)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
5.2 ms5.1 ms
realistic-source-map-pipeline: warm sourceAndMap() (reuse CachedSource)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
-1%
79.8 µs80.5 µs
size-only-source: map() (throws)
benchmark/cases/size-only-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
1.9 ms1.8 ms
size-only-source: buffer() (throws)
benchmark/cases/size-only-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
1.8 ms1.8 ms
compat-source: updateHash() (fallback)
benchmark/cases/compat-source/index.bench.mjs
CodSpeed Performance Gauge
-1%
6 ms6 ms
size-only-source: source() (throws)
benchmark/cases/size-only-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
1.8 ms1.8 ms
cached-source: buffer() (warm, wraps ConcatSource x10)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
-1%
20.9 µs21.1 µs
realistic-source-map-pipeline: warm buffers() (Cached->Concat->Cached->Concat)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
-1%
26.6 µs26.8 µs
cached-source: buffer() (cached)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
27.4 µs27.2 µs
raw-source: new RawSource(buffer, true)
benchmark/cases/raw-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
83.7 µs83.2 µs
helpers/stringBufferUtils: internString (disabled)
benchmark/cases/helpers-string-buffer-utils/index.bench.mjs
CodSpeed Performance Gauge
-1%
24.5 µs24.7 µs
raw-source: source() (string)
benchmark/cases/raw-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
93.4 µs92.9 µs
concat-source: addAllSkipOptimizing()
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
116.8 µs116.2 µs
concat-source: getChildren()
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
120.1 µs119.4 µs
concat-source: nested flattening
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
729.2 µs725.3 µs
raw-source: map()
benchmark/cases/raw-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
91.8 µs91.3 µs
raw-source: new RawSource(string)
benchmark/cases/raw-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
86 µs85.5 µs
concat-source: source() (mixed)
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
132.9 µs132.2 µs
concat-source: add() x50
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+1%
121.5 µs120.9 µs

Commits

Click on a commit to change the comparison range
Base
main
adf17ec
-98.22%
bench: stabilize prefix-source getPrefix() and original() cases
939f579
5 months ago
by claude
© 2026 CodSpeed Technology
Home Terms Privacy Docs