Avatar for the einouqo user
einouqo
use-raf
BlogDocsChangelog

docs: update state hook readme

#17Merged
Comparing
chore/docs
(
2470cdc
) with
main
(
1ca1864
)
CodSpeed Performance Gauge
+1%
Untouched
5
Skipped
6

Benchmarks

11 total
@use-raf/state #regress mount cost
packages/state/src/state.bench.ts::raf state hook::mount cost
CodSpeed Performance Gauge
+1%
2.5 ms2.5 ms
@use-raf/state #regress throughput single update
packages/state/src/state.bench.ts::raf state hook::throughput::single update per frame
CodSpeed Performance Gauge
+1%
62.9 ms62.1 ms
@use-raf/state #regress throughput batched updates
packages/state/src/state.bench.ts::raf state hook::throughput::batched updates
CodSpeed Performance Gauge
+1%
17.3 ms17.1 ms
@use-raf/state #regress throughput complex state
packages/state/src/state.bench.ts::raf state hook::throughput::complex state
CodSpeed Performance Gauge
+1%
40.2 ms39.8 ms
@use-raf/state #regress throughput updater functions
packages/state/src/state.bench.ts::raf state hook::throughput::updater functions
CodSpeed Performance Gauge
0%
64.7 ms64.4 ms
@use-raf/loop #regress mount cost
packages/loop/src/raf-loop.bench.ts::raf loop hook::mount cost
Skipped
2.4 ms*
@use-raf/loop #regress throughput 10fps throttle
packages/loop/src/raf-loop.bench.ts::raf loop hook::throughput::throttle::10fps
Skipped
40.7 ms*
@use-raf/loop #regress throughput 60fps throttle
packages/loop/src/raf-loop.bench.ts::raf loop hook::throughput::throttle::60fps
Skipped
144.8 ms*
@use-raf/loop #regress throughput 30fps throttle
packages/loop/src/raf-loop.bench.ts::raf loop hook::throughput::throttle::30fps
Skipped
101 ms*
@use-raf/loop #regress throughput no throttle
packages/loop/src/raf-loop.bench.ts::raf loop hook::throughput::no throttle
Skipped
141.7 ms*
@use-raf/loop #regress throughput 120fps throttle
packages/loop/src/raf-loop.bench.ts::raf loop hook::throughput::throttle::120fps
Skipped
145.3 ms*

Commits

Click on a commit to change the comparison range
Base
main
1ca1864
+1.09%
docs: update state hook readme
2470cdc
2 months ago
by einouqo
© 2026 CodSpeed Technology
Home Terms Privacy Docs