lynx-family
lynx-stack
BlogDocsChangelog

feat: delay the createSnapshot operation

#1899
Comparing
feat/lazy-snapshot-create
(
a0ca8ef
) with
main
(
04f2c39
)
CodSpeed Performance Gauge
-7%
Improvements
1
Regressions
1
Untouched
60
Skipped
3

Benchmarks

Skipped (3)

transform 1000 view elements with event
packages/react/transform/__test__/basic.bench.js::Basic
Skipped
336.7 ms*
transform 1000 view elements with Children
packages/react/transform/__test__/basic.bench.js::Basic
Skipped
152.5 ms*
transform 1000 effects
packages/react/transform/__test__/basic.bench.js::Basic
Skipped
32.4 ms*

Failed

basic-performance-div-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
Regression
CodSpeed Performance Gauge
-7%
5.9 ms6.3 ms

Improved

basic-performance-nest-level-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
+15%
6.7 ms5.8 ms

Passed

006-static-raw-text/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
+4%
396.3 µs382.2 µs
002-hello-reactLynx/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
+3%
398.3 µs385.3 µs
004-various-update/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
+3%
645.6 µs626.7 µs
006-static-raw-text/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
+3%
479.4 µs467.7 µs
002-hello-reactLynx/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
+2%
478.3 µs468.1 µs
006-static-raw-text-hydrate
benchmark/react
CodSpeed Performance Gauge
+2%
1.6 ms1.6 ms
004-various-update/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
+1%
377.5 µs372.3 µs
basic-performance-div-1000
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
+1%
37.2 ms36.7 ms
003-hello-list/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
+1%
1.5 ms1.5 ms
basic-performance-image-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
+1%
9.8 ms9.7 ms
003-hello-list-hydrate
benchmark/react
CodSpeed Performance Gauge
+1%
8.2 ms8.2 ms
002-hello-reactLynx__main-thread-serializeRoot
benchmark/react
CodSpeed Performance Gauge
+1%
515.5 µs512.2 µs
006-static-raw-text__main-thread-serializeRoot
benchmark/react
CodSpeed Performance Gauge
+1%
916.3 µs910.7 µs
003-hello-list/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
+1%
1.5 ms1.5 ms
more faster fib(20)
benchmark/react/cases/001-fib/index.ts
CodSpeed Performance Gauge
+1%
16.2 µs16.2 µs
002-hello-reactLynx-hydrate
benchmark/react
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
004-various-update__main-thread-setAttribute__Class
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
35.9 µs35.8 µs
004-various-update__main-thread-setAttribute__StyleString
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
32.8 µs32.7 µs
004-various-update__main-thread-setAttribute__Id
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
35 µs34.9 µs
003-hello-list__main-thread-renderOpcodes
benchmark/react
CodSpeed Performance Gauge
0%
2.2 ms2.2 ms
003-hello-list__main-thread-componentAtIndex__reuse
benchmark/react
CodSpeed Performance Gauge
0%
3.1 ms3.1 ms
003-hello-list__main-thread-componentAtIndex__create
benchmark/react
CodSpeed Performance Gauge
0%
5.2 ms5.2 ms
004-various-update-setAttribute__BatchedValues
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
315.4 µs314.9 µs
faster fib(20)
benchmark/react/cases/001-fib/index.ts
CodSpeed Performance Gauge
0%
46.6 µs46.6 µs
004-various-update__main-thread-setAttribute__BatchedValues
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
777.1 µs776.8 µs
005-load-script/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
slower fib(20)
benchmark/react/cases/001-fib/index.ts
CodSpeed Performance Gauge
0%
5.3 ms5.3 ms
002-hello-reactLynx-destroyBackground
benchmark/react
CodSpeed Performance Gauge
0%
702.1 µs702.2 µs
004-various-update__main-thread-setAttribute__Dataset
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
33.2 µs33.2 µs
001-fib/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
546.9 µs547.3 µs
basic-performance-text-200
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
0%
15.8 ms15.9 ms
006-static-raw-text__main-thread-renderOpcodes
benchmark/react
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
006-static-raw-text-destroyBackground
benchmark/react
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
004-various-update__main-thread-setAttribute__ListItemPlatformInfo
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
111.8 µs111.9 µs
003-hello-list-destroyBackground
benchmark/react
CodSpeed Performance Gauge
0%
2.5 ms2.5 ms
004-various-update__main-thread-setAttribute__Spread
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
359.1 µs359.5 µs
004-various-update__main-thread-setAttribute__MT_Ref
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
117.1 µs117.3 µs
004-various-update__main-thread-setAttribute__ListItemPlatformInfoSpread
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
94.1 µs94.4 µs
003-hello-list__main-thread-processData
benchmark/react
CodSpeed Performance Gauge
0%
22.6 µs22.6 µs
004-various-update__main-thread-setAttribute__TimingFlag
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
72.3 µs72.5 µs
003-hello-list__main-thread-serializeRoot
benchmark/react
CodSpeed Performance Gauge
0%
3.7 ms3.7 ms
002-hello-reactLynx__main-thread-renderOpcodes
benchmark/react
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
basic-performance-scroll-view-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
0%
9.2 ms9.3 ms
005-load-script/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
-1%
1.1 ms1.1 ms
004-various-update__main-thread-setAttribute__MT_Event
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
-1%
95.5 µs96.1 µs
006-static-raw-text__main-thread-renderMainThread
benchmark/react
CodSpeed Performance Gauge
-1%
1.5 ms1.6 ms
003-hello-list__main-thread-renderMainThread
benchmark/react
CodSpeed Performance Gauge
-1%
14.7 ms14.8 ms
002-hello-reactLynx__main-thread-processData
benchmark/react
CodSpeed Performance Gauge
-1%
21.9 µs22.1 µs
transform 1000 view elements
packages/react/transform/__test__/basic.bench.js::Basic
CodSpeed Performance Gauge
-1%
45.2 ms45.6 ms
002-hello-reactLynx__main-thread-renderMainThread
benchmark/react
CodSpeed Performance Gauge
-1%
2 ms2 ms
006-static-raw-text__main-thread-processData
benchmark/react
CodSpeed Performance Gauge
-1%
21.7 µs21.9 µs
004-various-update__main-thread-setAttribute__StyleObject
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
-1%
97.5 µs98.3 µs
basic-performance-small-css
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
-1%
7.3 ms7.4 ms
002-hello-reactLynx-renderBackground
benchmark/react
CodSpeed Performance Gauge
-1%
2.6 ms2.6 ms
basic-performance-div-10000
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
-1%
382 ms385.8 ms
003-hello-list-renderBackground
benchmark/react
CodSpeed Performance Gauge
-1%
18.4 ms18.6 ms
006-static-raw-text-renderBackground
benchmark/react
CodSpeed Performance Gauge
-1%
2.8 ms2.9 ms
basic-performance-large-css
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
-1%
11.7 ms11.8 ms
001-fib/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
-1%
1.1 ms1.1 ms
004-various-update__main-thread-setAttribute__Attr
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
-2%
36 µs36.6 µs

Commits

Click on a commit to change the comparison range
Base
main
04f2c39
-5.04%
test: update snapshot files
212cc5c
7 days ago
by upupming
+10.38%
feat: reduce redundant DEV_ONLY_AddSnapshot when HMR
b78f386
7 days ago
by upupming
-10.78%
feat: update test snapshot
9b2489f
7 days ago
by upupming
+5.45%
Update packages/react/runtime/__test__/snapshotPatch.test.jsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Yiming Li <yimingli.cs@gmail.com>
875ad05
6 days ago
by upupming
+7.43%
fix: snapshot file
4ac99e0
13 hours ago
by upupming
-13.99%
Merge remote-tracking branch 'gh/main' into feat/lazy-snapshot-create
a0ca8ef
13 hours ago
by upupming
© 2025 CodSpeed Technology
Home Terms Privacy Docs