studiometa
js-toolkit
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
[Enhancement] Optimize tween, animate and RafService for browser performance
#721
Comparing
feat/tween-animate-performance
(
ee20d3e
) with
main
(
b87ad04
)
CodSpeed Performance Gauge
-41%
Improvement
14
Regression
7
Untouched
94
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Regression
Improvement
Untouched
115 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
create with simple keyframes (opacity)
packages/tests/__benchmarks__/animate.bench.ts::animate::creation
CodSpeed Performance Gauge
-41%
107.1 µs
181.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
create with easing per keyframe
packages/tests/__benchmarks__/animate.bench.ts::animate::creation
CodSpeed Performance Gauge
-35%
153.6 µs
235.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
start/pause cycle
packages/tests/__benchmarks__/animate.bench.ts::animate::lifecycle
CodSpeed Performance Gauge
-30%
148.6 µs
211.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
create with custom properties
packages/tests/__benchmarks__/animate.bench.ts::animate::creation
CodSpeed Performance Gauge
-29%
124.2 µs
174.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
create with all options
packages/tests/__benchmarks__/animate.bench.ts::animate::creation
CodSpeed Performance Gauge
-23%
151.2 µs
196.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
create with multiple transforms
packages/tests/__benchmarks__/animate.bench.ts::animate::creation
CodSpeed Performance Gauge
-20%
158.8 µs
198 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
create with 4 keyframes
packages/tests/__benchmarks__/animate.bench.ts::animate::creation
CodSpeed Performance Gauge
-17%
434.3 µs
520.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
trigger (50 callbacks, read only)
packages/tests/__benchmarks__/services.bench.ts::services::RafService.trigger()
CodSpeed Performance Gauge
×10
496.2 µs
47.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
create with transform keyframes (x, y)
packages/tests/__benchmarks__/animate.bench.ts::animate::creation
CodSpeed Performance Gauge
+81%
306.1 µs
168.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
trigger (50 callbacks, read + write)
packages/tests/__benchmarks__/services.bench.ts::services::RafService.trigger()
CodSpeed Performance Gauge
+58%
106.2 µs
67.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
getInstances() (100 instances, copy Set)
packages/tests/__benchmarks__/base.bench.ts::Base internals::getInstances
CodSpeed Performance Gauge
+50%
41 µs
27.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
create tween with bezier curve
packages/tests/__benchmarks__/tween.bench.ts::tween::creation
CodSpeed Performance Gauge
+26%
469 µs
372.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
getAllProperties (no filter)
packages/tests/__benchmarks__/base.bench.ts::Base internals::getAllProperties
CodSpeed Performance Gauge
+25%
64.6 µs
51.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
trigger (10 callbacks, read only)
packages/tests/__benchmarks__/services.bench.ts::services::RafService.trigger()
CodSpeed Performance Gauge
+25%
43.7 µs
34.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
progress update (x, y transform)
packages/tests/__benchmarks__/animate.bench.ts::animate::progress updates (single element)
CodSpeed Performance Gauge
+22%
372.7 µs
305.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
progress update (5 transforms)
packages/tests/__benchmarks__/animate.bench.ts::animate::progress updates (single element)
CodSpeed Performance Gauge
+19%
365.5 µs
307.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
progress update (4 keyframes)
packages/tests/__benchmarks__/animate.bench.ts::animate::progress updates (single element)
CodSpeed Performance Gauge
+17%
464 µs
396.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
trigger (10 callbacks, read + write)
packages/tests/__benchmarks__/services.bench.ts::services::RafService.trigger()
CodSpeed Performance Gauge
+17%
47.9 µs
41 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
progress with numeric stagger
packages/tests/__benchmarks__/animate.bench.ts::animate::staggered animations
CodSpeed Performance Gauge
+17%
1.2 ms
1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
progress update (5 elements)
packages/tests/__benchmarks__/animate.bench.ts::animate::progress updates (multiple elements)
CodSpeed Performance Gauge
+14%
939 µs
826.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
progress update (10 elements)
packages/tests/__benchmarks__/animate.bench.ts::animate::progress updates (multiple elements)
CodSpeed Performance Gauge
+11%
2.7 ms
2.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
progress update (opacity only)
packages/tests/__benchmarks__/animate.bench.ts::animate::progress updates (single element)
CodSpeed Performance Gauge
+10%
374.2 µs
340.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize undefined (fallback to linear)
packages/tests/__benchmarks__/tween.bench.ts::tween::normalizeEase
CodSpeed Performance Gauge
+9%
12.9 µs
11.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
progress update (3 custom properties)
packages/tests/__benchmarks__/animate.bench.ts::animate::progress updates (single element)
CodSpeed Performance Gauge
+7%
524 µs
488.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize function
packages/tests/__benchmarks__/tween.bench.ts::tween::normalizeEase
CodSpeed Performance Gauge
+7%
13.5 µs
12.6 µs
1
2
3
4
5
Commits
Click on a commit to change the comparison range
Base
main
b87ad04
-40.91%
Update changelog with performance improvements
ee20d3e
7 days ago
by titouanmathis
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs