webpack
webpack-sources
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
fix: improve performance in many places
#209
Merged
Comparing
claude/perf-improvements-D2ZFm
(
b7b260c
) with
main
(
ccfbc65
)
CodSpeed Performance Gauge
+70%
Improvement
10
Untouched
151
Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments, which may affect the accuracy of the results.
Learn more about regression causes
.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
161 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
helpers/readMappings: fixture (noop callback)
benchmark/cases/helpers-read-mappings/index.bench.mjs
CodSpeed Performance Gauge
+70%
27.5 ms
16.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
helpers/readMappings: fixture (counting callback)
benchmark/cases/helpers-read-mappings/index.bench.mjs
CodSpeed Performance Gauge
+60%
1,466.8 µs
916.4 µs
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
+45%
9.5 ms
6.6 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
+38%
9.9 ms
7.1 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
+23%
14.4 ms
11.7 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
+23%
14.5 ms
11.7 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
+20%
16.3 ms
13.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat-source: streamChunks() with SourceMapSource child
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+20%
17.6 ms
14.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
source-map-source: streamChunks() (combined inner map)
benchmark/cases/source-map-source/index.bench.mjs
CodSpeed Performance Gauge
+17%
11.7 ms
9.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
realistic-source-map-pipeline: streamChunks() (columns off)
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
+11%
7 ms
6.3 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
+6%
11.5 ms
10.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
+6%
15.5 ms
14.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
realistic-source-map-pipeline: cold map() only
benchmark/cases/realistic-source-map-pipeline/index.bench.mjs
CodSpeed Performance Gauge
+6%
15.5 ms
14.6 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
+6%
17.3 ms
16.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
prefix-source: sourceAndMap()
benchmark/cases/prefix-source/index.bench.mjs
CodSpeed Performance Gauge
+4%
10.7 ms
10.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
prefix-source: map()
benchmark/cases/prefix-source/index.bench.mjs
CodSpeed Performance Gauge
+4%
10.7 ms
10.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
cached-source: streamChunks() (cold)
benchmark/cases/cached-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
10 ms
9.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat-source: sourceAndMap()
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
21.9 ms
21.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
concat-source: map()
benchmark/cases/concat-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
22 ms
21.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
original-source: map()
benchmark/cases/original-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
19.2 ms
18.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
original-source: sourceAndMap()
benchmark/cases/original-source/index.bench.mjs
CodSpeed Performance Gauge
+3%
19.3 ms
18.7 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
+3%
19.1 ms
18.6 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
+3%
19.3 ms
18.7 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
+3%
20.6 ms
20.1 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
+2%
35.2 ms
34.4 ms
1
2
3
4
5
6
7
Commits
Click on a commit to change the comparison range
Base
main
ccfbc65
-19.61%
fix: improve performance in many places
a241607
5 months ago
by claude
+89.78%
revert: splitIntoPotentialTokens lookup tables
bc7d55e
5 months ago
by claude
0%
chore: add changelog entry
b7b260c
5 months ago
by alexander-akait
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs