lynx-family
lynx-stack
BlogDocsChangelog

feat: refactor web mainthread implementation in rust

#1937
Comparing
PupilTong:p/hw/rust-refactor
(
0c0dc28
) with
main
(
8078680
)
CodSpeed Performance Gauge
+5%
Improvements
1
Untouched
62
Skipped
3

Benchmarks

Skipped (3)

Improved

basic-performance-small-css
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
+5%
8.1 ms7.7 ms

Passed

basic-performance-text-200
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
+2%
18.7 ms18.4 ms
basic-performance-div-1000
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
+1%
43.6 ms43.2 ms
basic-performance-div-10000
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
+1%
461.2 ms457.1 ms
004-various-update__main-thread-setAttribute__StyleString
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
32.8 µs32.8 µs
004-various-update__main-thread-setAttribute__Id
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
34.9 µs34.8 µs
004-various-update__main-thread-setAttribute__Class
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
35.7 µs35.6 µs
004-various-update__main-thread-setAttribute__Dataset
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
33.1 µs33 µs
004-various-update__main-thread-setAttribute__Attr
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
37.2 µs37.1 µs
004-various-update__main-thread-setAttribute__TimingFlag
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
72 µs71.9 µs
004-various-update__main-thread-setAttribute__MT_Event
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
95 µs94.9 µs
004-various-update__main-thread-setAttribute__StyleObject
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
97.4 µs97.3 µs
004-various-update__main-thread-setAttribute__ListItemPlatformInfo
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
111.6 µs111.5 µs
004-various-update__main-thread-setAttribute__ListItemPlatformInfoSpread
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
94.3 µs94.3 µs
006-static-raw-text__main-thread-renderOpcodes
benchmark/react
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
006-static-raw-text-hydrate
benchmark/react
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
003-hello-list__main-thread-renderOpcodes
benchmark/react
CodSpeed Performance Gauge
0%
2.2 ms2.2 ms
006-static-raw-text__main-thread-renderMainThread
benchmark/react
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
transform 1000 view elements
packages/react/transform/__test__/basic.bench.js::Basic
CodSpeed Performance Gauge
0%
45.7 ms45.7 ms
004-various-update__main-thread-setAttribute__BatchedValues
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
777 µs776.9 µs
003-hello-list__main-thread-componentAtIndex__reuse
benchmark/react
CodSpeed Performance Gauge
0%
3.1 ms3.1 ms
004-various-update/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
386.3 µs386.2 µs
005-load-script/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
002-hello-reactLynx/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
481.4 µs481.3 µs
006-static-raw-text/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
480.3 µs480.3 µs
003-hello-list/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
001-fib/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
562.6 µs562.5 µs
005-load-script/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
002-hello-reactLynx-hydrate
benchmark/react
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
002-hello-reactLynx__main-thread-renderOpcodes
benchmark/react
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
004-various-update/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
631.8 µs631.8 µs
003-hello-list__main-thread-processData
benchmark/react
CodSpeed Performance Gauge
0%
22.4 µs22.4 µs
002-hello-reactLynx__main-thread-processData
benchmark/react
CodSpeed Performance Gauge
0%
21.8 µs21.8 µs
003-hello-list-renderBackground
benchmark/react
CodSpeed Performance Gauge
0%
18.6 ms18.6 ms
006-static-raw-text/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
383.9 µs383.9 µs
003-hello-list/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
003-hello-list__main-thread-serializeRoot
benchmark/react
CodSpeed Performance Gauge
0%
3.7 ms3.7 ms
002-hello-reactLynx/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
385.3 µs385.3 µs
002-hello-reactLynx__main-thread-renderMainThread
benchmark/react
CodSpeed Performance Gauge
0%
2 ms2 ms
002-hello-reactLynx-renderBackground
benchmark/react
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
003-hello-list-hydrate
benchmark/react
CodSpeed Performance Gauge
0%
8.2 ms8.2 ms
006-static-raw-text-destroyBackground
benchmark/react
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
003-hello-list__main-thread-renderMainThread
benchmark/react
CodSpeed Performance Gauge
0%
14.8 ms14.8 ms
004-various-update__main-thread-setAttribute__Spread
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
379.7 µs379.7 µs
002-hello-reactLynx-destroyBackground
benchmark/react
CodSpeed Performance Gauge
0%
619.1 µs619.1 µs
004-various-update-setAttribute__BatchedValues
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
315 µs315.1 µs
001-fib/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
002-hello-reactLynx__main-thread-serializeRoot
benchmark/react
CodSpeed Performance Gauge
0%
511.4 µs511.4 µs
003-hello-list-destroyBackground
benchmark/react
CodSpeed Performance Gauge
0%
2.5 ms2.5 ms
006-static-raw-text-renderBackground
benchmark/react
CodSpeed Performance Gauge
0%
2.9 ms2.9 ms
006-static-raw-text__main-thread-serializeRoot
benchmark/react
CodSpeed Performance Gauge
0%
909.6 µs909.7 µs
slower fib(20)
benchmark/react/cases/001-fib/index.ts
CodSpeed Performance Gauge
0%
5.3 ms5.3 ms
003-hello-list__main-thread-listFlush__updateListInfo
benchmark/react
CodSpeed Performance Gauge
0%
165.9 µs166 µs
004-various-update__main-thread-setAttribute__MT_Ref
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
116.6 µs116.7 µs
faster fib(20)
benchmark/react/cases/001-fib/index.ts
CodSpeed Performance Gauge
0%
46.7 µs46.8 µs
basic-performance-div-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
0%
6.9 ms6.9 ms
003-hello-list__main-thread-componentAtIndex__create
benchmark/react
CodSpeed Performance Gauge
0%
5.2 ms5.2 ms
006-static-raw-text__main-thread-processData
benchmark/react
CodSpeed Performance Gauge
0%
21.3 µs21.3 µs
more faster fib(20)
benchmark/react/cases/001-fib/index.ts
CodSpeed Performance Gauge
-1%
16.2 µs16.3 µs
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
basic-performance-image-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
-1%
11.3 ms11.4 ms
basic-performance-scroll-view-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
-3%
10.5 ms10.8 ms
basic-performance-nest-level-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
-3%
6.9 ms7.2 ms

Commits

Click on a commit to change the comparison range
Base
main
8078680
+7.71%
+ changeset
56fea81
2 days ago
by PupilTong
-2.23%
fix publish
0c0dc28
2 days ago
by PupilTong
© 2026 CodSpeed Technology
Home Terms Privacy Docs