Avatar for the webpack user
webpack
webpack-sources
BlogDocsChangelog

feat: add buffers() method returning Buffer[]

#204Merged
Comparing
claude/fix-issue-157-f18u4
(
c0d8294
) with
main
(
58420d1
)
CodSpeed Performance Gauge
-96%
Improvement
7
Regression
74
Untouched
66
New
14

Benchmarks

161 total
concat-source: add() x50
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
×3.6
432.3 µs121 µs
cached-source: source() (cold)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
×3.4
634.2 µs186.4 µs
raw-source: size()
benchmark/cases/raw-source/index.bench.mjs
CodSpeed Performance Gauge
+29%
1.5 ms1.2 ms
helpers/stringBufferUtils: enter/exit interning range
benchmark/cases/helpers-string-buffer-utils/index.bench.mjs
CodSpeed Performance Gauge
+25%
184.5 µs147.8 µs
source-map-source: size()
benchmark/cases/source-map-source/index.bench.mjs
CodSpeed Performance Gauge
+23%
1.6 ms1.3 ms
source-map-source: buffer()
benchmark/cases/source-map-source/index.bench.mjs
CodSpeed Performance Gauge
+15%
2.9 ms2.6 ms
cached-source: buffer() (warm, wraps ConcatSource x10)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A21 µs
cached-source: buffer() (cold, wraps ConcatSource x10)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A9 ms
cached-source: buffers() (cached)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A20.7 µs
cached-source: buffers() (cold, wraps ConcatSource x10)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A5.1 ms
cached-source: buffers() (warm, wraps ConcatSource x10)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A20.9 µs
concat-source: buffers() (10 raw)
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A120.4 µs
compat-source: buffers() (delegated)
benchmark/cases/compat-source/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A167.9 µs
concat-source: buffer() (nested 4x10 raw)
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A8.5 ms
compat-source: buffers() (fallback via super)
benchmark/cases/compat-source/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A2.5 ms
concat-source: buffers() (nested 4x10 raw)
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A210.8 µs
realistic-source-map-pipeline: cold buffer() (Cached->Concat->Cached->Concat)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A2 ms
realistic-source-map-pipeline: cold buffers() (Cached->Concat->Cached->Concat)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A1.2 ms
realistic-source-map-pipeline: warm buffer() (Cached->Concat->Cached->Concat)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A26.7 µs
realistic-source-map-pipeline: warm buffers() (Cached->Concat->Cached->Concat)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
N/A
N/A26.8 µs
compat-source: size() (delegated)
benchmark/cases/compat-source/index.bench.mjs
CodSpeed Performance Gauge
-10%
155.9 µs172.4 µs
realistic-source-map-pipeline: streamChunks() (columns on)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
-9%
10.4 ms11.5 ms
cached-source: size() (cached)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
-9%
27.2 µs29.9 µs
replace-source: map()
benchmark/cases/replace-source/index.bench.mjs
CodSpeed Performance Gauge
-9%
24.3 ms26.6 ms
original-source: sourceAndMap({columns:false})
benchmark/cases/original-source/index.bench.mjs
CodSpeed Performance Gauge
-9%
4 ms4.4 ms

Commits

Click on a commit to change the comparison range
Base
main
58420d1
-16.26%
bench: add buffers() benchmarks
bb67759
5 months ago
by claude
-80.17%
bench: stabilise CodSpeed measurements
c0d8294
5 months ago
by claude
© 2026 CodSpeed Technology
Home Terms Privacy Docs