jonahsnider
convert
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf: use closures instead of bound functions
#704
Comparing
closures
(
b27aa8d
) with
main
(
e2facb1
)
CodSpeed Performance Gauge
+18%
Improvement
2
Untouched
4
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
6 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
convert 8192 bytes to best
src/converters/convert.bench.ts::convert to best
CodSpeed Performance Gauge
+18%
61.2 µs
51.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
convert 2.5 liters to in3
src/converters/convert.bench.ts::convert units
CodSpeed Performance Gauge
+16%
22.5 µs
19.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parse 10h to ms
src/converters/ms.bench.ts::ms
CodSpeed Performance Gauge
+7%
82.1 µs
76.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
convert 24 hours to minutes
src/converters/convert.bench.ts::convert units
CodSpeed Performance Gauge
+3%
20.3 µs
19.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
convert 4 inches to millimeters
src/converters/convert.bench.ts::convert units
CodSpeed Performance Gauge
+2%
19.7 µs
19.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parse 10h in ms to string
src/converters/ms.bench.ts::ms
CodSpeed Performance Gauge
+2%
41.3 µs
40.7 µs
Commits
Click on a commit to change the comparison range
Base
main
e2facb1
+18.3%
perf: use closures instead of bound functions
b27aa8d
1 year ago
by jonahsnider
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs