webpack
webpack-sources
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
fix: improve performance in many places
#199
Comparing
fix-perf
(
3a5fb5d
) with
main
(
5a07869
)
CodSpeed Performance Gauge
-17%
Improvement
38
Regression
2
Untouched
107
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Regression
Improvement
Untouched
147 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
replace-source: sourceAndMap()
benchmark/cases/replace-source/index.bench.mjs
CodSpeed Performance Gauge
+22%
30.6 ms
25 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
cached-source: sourceAndMap() (cold)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+20%
20.5 ms
17.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
original-source: sourceAndMap()
benchmark/cases/original-source/index.bench.mjs
CodSpeed Performance Gauge
+20%
20.4 ms
17 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
realistic-source-map-pipeline: serialize through getCachedData()
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
+20%
19.3 ms
16.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
original-source: map()
benchmark/cases/original-source/index.bench.mjs
CodSpeed Performance Gauge
+19%
20.2 ms
17 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
helpers/createMappingsSerializer: full serializer
benchmark/cases/helpers-create-mappings-serializer/index.bench.mjs
CodSpeed Performance Gauge
+19%
4.5 ms
3.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
realistic-source-map-pipeline: cold sourceAndMap() (fresh pipeline)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
+18%
17 ms
14.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat-source: map()
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+17%
23 ms
19.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat-source: sourceAndMap()
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+17%
23 ms
19.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
replace-source: map() (no replacements)
benchmark/cases/replace-source/index.bench.mjs
CodSpeed Performance Gauge
+17%
19.7 ms
16.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
compat-source: wraps OriginalSource
benchmark/cases/compat-source/index.bench.mjs
CodSpeed Performance Gauge
+15%
35.3 ms
30.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
replace-source: streamChunks() (1000 replacements)
benchmark/cases/replace-source/index.bench.mjs
CodSpeed Performance Gauge
+13%
53.1 ms
47.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
cached-source: getCachedData() then restore
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+12%
20.5 ms
18.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
helpers/createMappingsSerializer: lines-only serializer
benchmark/cases/helpers-create-mappings-serializer/index.bench.mjs
CodSpeed Performance Gauge
+12%
2.8 ms
2.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
source-map-source: streamChunks({finalSource:true})
benchmark/cases/source-map-source/index.bench.mjs
CodSpeed Performance Gauge
+10%
10.8 ms
9.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
source-map-source: streamChunks({columns:false})
benchmark/cases/source-map-source/index.bench.mjs
CodSpeed Performance Gauge
+9%
10.3 ms
9.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
compat-source: size() (fallback via super)
benchmark/cases/compat-source/index.bench.mjs
CodSpeed Performance Gauge
+9%
2.7 ms
2.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
realistic-source-map-pipeline: streamChunks() (columns on)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
+8%
11.3 ms
10.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
cached-source: source() (cold)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+8%
675 µs
624.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
replace-source: source() (1000 small replacements)
benchmark/cases/replace-source/index.bench.mjs
CodSpeed Performance Gauge
+8%
2.6 ms
2.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
source-map-source: streamChunks()
benchmark/cases/source-map-source/index.bench.mjs
CodSpeed Performance Gauge
+6%
15.3 ms
14.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
cached-source: streamChunks() (warm)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+6%
15.4 ms
14.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
replace-source: size() (1000 small replacements)
benchmark/cases/replace-source/index.bench.mjs
CodSpeed Performance Gauge
+6%
3.7 ms
3.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
replace-source: buffer() (1000 small replacements)
benchmark/cases/replace-source/index.bench.mjs
CodSpeed Performance Gauge
+5%
3.7 ms
3.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
prefix-source: streamChunks() with SourceMapSource child
benchmark/cases/prefix-source/index.bench.mjs
CodSpeed Performance Gauge
+5%
17.2 ms
16.4 ms
1
2
3
4
5
6
Commits
Click on a commit to change the comparison range
Base
main
5a07869
-17.42%
fix: improve performance in many places
3a5fb5d
8 hours ago
by alexander-akait
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs