kelsos
plainfp
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf: add benches for Option, ResultAsync, and Records
#9
Merged
Comparing
perf/bench-option-recordsasync
(
a4b6d4f
) with
main
(
25bae7a
)
CodSpeed Performance Gauge
0%
Untouched
20
New
28
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
New
Untouched
48 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
native property access
packages/plainfp/src/records/access.bench.ts::Records.get vs native property access
CodSpeed Performance Gauge
N/A
N/A
11.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Records.entries
packages/plainfp/src/records/access.bench.ts::Records.{keys, values, entries} vs native
CodSpeed Performance Gauge
N/A
N/A
123 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Promise.then chain (5 deep)
packages/plainfp/src/result-async/transform.bench.ts::ResultAsync.map vs bare Promise.then
CodSpeed Performance Gauge
N/A
N/A
21 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ResultAsync.map chain (5 deep, all ok)
packages/plainfp/src/result-async/transform.bench.ts::ResultAsync.map vs bare Promise.then
CodSpeed Performance Gauge
N/A
N/A
31.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Object.keys native
packages/plainfp/src/records/access.bench.ts::Records.{keys, values, entries} vs native
CodSpeed Performance Gauge
N/A
N/A
24.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
map over err (short-circuit)
packages/plainfp/src/result-async/transform.bench.ts::ResultAsync.map — ok vs err paths
CodSpeed Performance Gauge
N/A
N/A
57.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
map over ok
packages/plainfp/src/result-async/transform.bench.ts::ResultAsync.map — ok vs err paths
CodSpeed Performance Gauge
N/A
N/A
32.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
flatMap 5 deep, ok path
packages/plainfp/src/result-async/transform.bench.ts::ResultAsync.flatMap pipeline
CodSpeed Performance Gauge
N/A
N/A
34.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
handwritten reduce (medium)
packages/plainfp/src/records/transform.bench.ts::Records.mapValues vs handwritten reduce
CodSpeed Performance Gauge
N/A
N/A
1.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Records.keys
packages/plainfp/src/records/access.bench.ts::Records.{keys, values, entries} vs native
CodSpeed Performance Gauge
N/A
N/A
25.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
keep none
packages/plainfp/src/records/transform.bench.ts::Records.filter (medium)
CodSpeed Performance Gauge
N/A
N/A
391.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Records.mapValues (medium)
packages/plainfp/src/records/transform.bench.ts::Records.mapValues vs handwritten reduce
CodSpeed Performance Gauge
N/A
N/A
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
rename prefix
packages/plainfp/src/records/transform.bench.ts::Records.mapKeys (medium)
CodSpeed Performance Gauge
N/A
N/A
2.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Records.mapValues (small)
packages/plainfp/src/records/transform.bench.ts::Records.mapValues vs handwritten reduce
CodSpeed Performance Gauge
N/A
N/A
28.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
keep roughly half
packages/plainfp/src/records/transform.bench.ts::Records.filter (medium)
CodSpeed Performance Gauge
N/A
N/A
577.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
flatMap 5 deep, some path
packages/plainfp/src/option/transform.bench.ts::Option.flatMap pipeline
CodSpeed Performance Gauge
N/A
N/A
18.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Records.values
packages/plainfp/src/records/access.bench.ts::Records.{keys, values, entries} vs native
CodSpeed Performance Gauge
N/A
N/A
78.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Records.get present key
packages/plainfp/src/records/access.bench.ts::Records.get vs native property access
CodSpeed Performance Gauge
N/A
N/A
56.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
handwritten reduce (small)
packages/plainfp/src/records/transform.bench.ts::Records.mapValues vs handwritten reduce
CodSpeed Performance Gauge
N/A
N/A
15.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
flatMap 5 deep, early none
packages/plainfp/src/option/transform.bench.ts::Option.flatMap pipeline
CodSpeed Performance Gauge
N/A
N/A
17.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
keep all
packages/plainfp/src/records/transform.bench.ts::Records.filter (medium)
CodSpeed Performance Gauge
N/A
N/A
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Records.get missing key
packages/plainfp/src/records/access.bench.ts::Records.get vs native property access
CodSpeed Performance Gauge
N/A
N/A
18.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
filter predicate passes
packages/plainfp/src/option/transform.bench.ts::Option.filter
CodSpeed Performance Gauge
N/A
N/A
14 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
map over none (short-circuit)
packages/plainfp/src/option/transform.bench.ts::Option.map — some vs none paths
CodSpeed Performance Gauge
N/A
N/A
13.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
filter predicate fails
packages/plainfp/src/option/transform.bench.ts::Option.filter
CodSpeed Performance Gauge
N/A
N/A
15.4 µs
1
2
Commits
Click on a commit to change the comparison range
Base
main
25bae7a
0%
perf: add benches for Option, ResultAsync, and Records
a4b6d4f
4 days ago
by kelsos
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs