lynx-family
lynx-stack
BlogDocsChangelog

refactor: extract `swc_plugin_inject` & `swc_plugins_shared::css`

#1782Merged
Comparing
refactor/extract-swc-plugin-inject
(
cb88d37
) with
main
(
e2993a0
)
CodSpeed Performance Gauge
+15%
Improvements
2
Untouched
51
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*

Improved

transform 1000 view elements
packages/react/transform/__test__/basic.bench.js::Basic
CodSpeed Performance Gauge
+15%
46.8 ms40.8 ms
basic-performance-small-css
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
+7%
7.2 ms6.8 ms

Passed

basic-performance-text-200
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
+2%
15.8 ms15.5 ms
basic-performance-scroll-view-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
0%
8.8 ms8.8 ms
003-hello-list__main-thread-componentAtIndex__reuse
benchmark/react
CodSpeed Performance Gauge
0%
3.1 ms3.1 ms
004-various-update-setAttribute__BatchedValues
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
314.7 µs314.6 µs
003-hello-list-destroyBackground
benchmark/react
CodSpeed Performance Gauge
0%
2.5 ms2.5 ms
002-hello-reactLynx-hydrate
benchmark/react
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
004-various-update__main-thread-setAttribute__BatchedValues
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
777.2 µs777.2 µs
003-hello-list/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
003-hello-list__main-thread-componentAtIndex__create
benchmark/react
CodSpeed Performance Gauge
0%
5.2 ms5.2 ms
003-hello-list__main-thread-renderMainThread
benchmark/react
CodSpeed Performance Gauge
0%
14.7 ms14.7 ms
002-hello-reactLynx__main-thread-renderOpcodes
benchmark/react
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
002-hello-reactLynx__main-thread-serializeRoot
benchmark/react
CodSpeed Performance Gauge
0%
516.6 µs516.6 µs
004-various-update/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
648 µs648 µs
003-hello-list-renderBackground
benchmark/react
CodSpeed Performance Gauge
0%
18.5 ms18.5 ms
003-hello-list__main-thread-serializeRoot
benchmark/react
CodSpeed Performance Gauge
0%
3.7 ms3.7 ms
more faster fib(20)
benchmark/react/cases/001-fib/index.ts
CodSpeed Performance Gauge
0%
16.3 µs16.3 µs
003-hello-list__main-thread-processData
benchmark/react
CodSpeed Performance Gauge
0%
22.6 µs22.6 µs
002-hello-reactLynx__main-thread-processData
benchmark/react
CodSpeed Performance Gauge
0%
21.8 µs21.8 µs
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%
623 µs623 µs
001-fib/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
002-hello-reactLynx/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
397.8 µs397.8 µs
003-hello-list__main-thread-renderOpcodes
benchmark/react
CodSpeed Performance Gauge
0%
2.2 ms2.2 ms
002-hello-reactLynx-renderBackground
benchmark/react
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
005-load-script/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
faster fib(20)
benchmark/react/cases/001-fib/index.ts
CodSpeed Performance Gauge
0%
48 µs48 µs
001-fib/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
545.7 µs545.7 µs
003-hello-list-hydrate
benchmark/react
CodSpeed Performance Gauge
0%
8.2 ms8.2 ms
004-various-update/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
377.4 µs377.5 µs
004-various-update__main-thread-setAttribute__Spread
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
353.9 µs353.9 µs
002-hello-reactLynx__main-thread-renderMainThread
benchmark/react
CodSpeed Performance Gauge
0%
2 ms2 ms
005-load-script/main-thread.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
003-hello-list/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
002-hello-reactLynx/background.js_LoadScript
benchmark/react
CodSpeed Performance Gauge
0%
478.3 µs478.4 µs
004-various-update__main-thread-setAttribute__StyleObject
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
97.9 µs97.9 µs
basic-performance-div-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
0%
5.7 ms5.7 ms
004-various-update__main-thread-setAttribute__TimingFlag
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
72.7 µs72.7 µs
004-various-update__main-thread-setAttribute__ListItemPlatformInfoSpread
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
94.3 µs94.4 µs
004-various-update__main-thread-setAttribute__MT_Ref
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
111.4 µs111.5 µs
004-various-update__main-thread-setAttribute__ListItemPlatformInfo
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
111.9 µs111.9 µs
004-various-update__main-thread-setAttribute__MT_Event
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
95.9 µs96 µs
basic-performance-nest-level-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
0%
6 ms6 ms
basic-performance-div-10000
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
0%
400.7 ms401.3 ms
004-various-update__main-thread-setAttribute__Attr
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
36.1 µs36.2 µs
004-various-update__main-thread-setAttribute__Class
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
35.9 µs36 µs
004-various-update__main-thread-setAttribute__Id
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
34.9 µs35 µs
004-various-update__main-thread-setAttribute__Dataset
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
33.2 µs33.4 µs
004-various-update__main-thread-setAttribute__StyleString
benchmark/react/cases/004-various-update/index.tsx
CodSpeed Performance Gauge
0%
33 µs33.1 µs
basic-performance-div-1000
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
0%
36.9 ms37.1 ms
basic-performance-image-100
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
-1%
10 ms10.1 ms
basic-performance-large-css
packages/web-platform/web-tests/tests/server.bench.vitest.spec.ts::server-tests
CodSpeed Performance Gauge
-4%
11.5 ms12 ms

Commits

Click on a commit to change the comparison range
Base
main
e2993a0
+14.82%
refactor: extract swc_plugin_inject & swc_plugins_shared::css
cb88d37
2 months ago
by gaoachao
© 2025 CodSpeed Technology
Home Terms Privacy Docs