Avatar for the vuejs user
vuejs
core
BlogDocsChangelog

types(emits): simplify types

#9788Merged
Comparing
Alfred-Skyblue:types/eimts-simplify
(
b133c8c
) with
main
(
60415b5
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
53
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

write ref, don't read computed (never invoked)
packages/reactivity/__tests__/computed.bench.ts::computed::write ref, don't read computed (never invoked)
CodSpeed Performance Gauge
+2%
33.7 µs
33.1 µs
write ref, don't read 1000 computeds (invoked)
packages/reactivity/__tests__/computed.bench.ts::computed::write ref, don't read 1000 computeds (invoked)
CodSpeed Performance Gauge
+2%
794.5 µs
781.4 µs
write ref, don't read 1000 computeds (never invoked)
packages/reactivity/__tests__/computed.bench.ts::computed::write ref, don't read 1000 computeds (never invoked)
CodSpeed Performance Gauge
+1%
38.4 µs
37.8 µs
write ref, read 1000 computeds
packages/reactivity/__tests__/computed.bench.ts::computed::write ref, read 1000 computeds
CodSpeed Performance Gauge
+1%
5.4 ms
5.4 ms
create watcher
packages/runtime-core/__tests__/apiWatch.bench.ts::create watcher
CodSpeed Performance Gauge
+1%
112.9 µs
111.8 µs
create computed
packages/reactivity/__tests__/computed.bench.ts::computed::create computed
CodSpeed Performance Gauge
+1%
24.9 µs
24.6 µs
create reactive obj
packages/reactivity/__tests__/reactiveObject.bench.ts::create reactive obj
CodSpeed Performance Gauge
+1%
33.7 µs
33.4 µs
write ref, don't read computed (invoked)
packages/reactivity/__tests__/computed.bench.ts::computed::write ref, don't read computed (invoked)
CodSpeed Performance Gauge
+1%
64 µs
63.5 µs
update ref to trigger watcher (executed)
packages/runtime-core/__tests__/apiWatch.bench.ts::update ref to trigger watcher (executed)
CodSpeed Performance Gauge
+1%
431.5 µs
428.6 µs
1000 refs, 1 computed
packages/reactivity/__tests__/computed.bench.ts::computed::1000 refs, 1 computed
CodSpeed Performance Gauge
+1%
2.6 ms
2.6 ms
update ref to trigger watchEffect (scheduled but not executed)
packages/runtime-core/__tests__/apiWatch.bench.ts::update ref to trigger watchEffect (scheduled but not executed)
CodSpeed Performance Gauge
+1%
341.2 µs
339.1 µs
reduce *raw* array, copied, 100 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *raw* array, copied, 100 elements
CodSpeed Performance Gauge
+1%
98.6 µs
98.1 µs
reduce *raw* array, copied, 10 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *raw* array, copied, 10 elements
CodSpeed Performance Gauge
0%
174.1 µs
173.4 µs
read ref
packages/reactivity/__tests__/ref.bench.ts::ref::read ref
CodSpeed Performance Gauge
0%
15 µs
15 µs
write/read ref
packages/reactivity/__tests__/ref.bench.ts::ref::write/read ref
CodSpeed Performance Gauge
0%
47.3 µs
47.2 µs
reduce *raw* array, manually triggered, 100 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *raw* array, manually triggered, 100 elements
CodSpeed Performance Gauge
0%
103.4 µs
103.2 µs
write reactive map property
packages/reactivity/__tests__/reactiveMap.bench.ts::write reactive map property
CodSpeed Performance Gauge
0%
50.5 µs
50.4 µs
write ref, read computed
packages/reactivity/__tests__/computed.bench.ts::computed::write ref, read computed
CodSpeed Performance Gauge
0%
121.7 µs
121.5 µs
write reactive map, don't read computed (invoked)
packages/reactivity/__tests__/reactiveMap.bench.ts::write reactive map, don't read computed (invoked)
CodSpeed Performance Gauge
0%
81.8 µs
81.7 µs
write reactive obj, read 1000 computeds
packages/reactivity/__tests__/reactiveObject.bench.ts::write reactive obj, read 1000 computeds
CodSpeed Performance Gauge
0%
7.7 ms
7.7 ms
reduce *readonly* array, 100 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *readonly* array, 100 elements
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
reduce *raw* array, manually triggered, 1000 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *raw* array, manually triggered, 1000 elements
CodSpeed Performance Gauge
0%
233.6 µs
233.2 µs
reduce *reactive* array, 10 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *reactive* array, 10 elements
CodSpeed Performance Gauge
0%
852.5 µs
851.5 µs
reduce *raw* array, copied, 1000 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *raw* array, copied, 1000 elements
CodSpeed Performance Gauge
0%
224.8 µs
224.5 µs
write reactive map, read 1000 computeds
packages/reactivity/__tests__/reactiveMap.bench.ts::write reactive map, read 1000 computeds
CodSpeed Performance Gauge
0%
9.5 ms
9.5 ms
create reactive map
packages/reactivity/__tests__/reactiveMap.bench.ts::create reactive map
CodSpeed Performance Gauge
0%
38.2 µs
38.1 µs
reduce *readonly* array, 10 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *readonly* array, 10 elements
CodSpeed Performance Gauge
0%
476.4 µs
476.2 µs
reduce *readonly* array, 1000 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *readonly* array, 1000 elements
CodSpeed Performance Gauge
0%
11.7 ms
11.7 ms
reduce *raw* array, manually triggered, 10 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *raw* array, manually triggered, 10 elements
CodSpeed Performance Gauge
0%
314.9 µs
314.8 µs
write reactive obj, don't read 1000 computeds (invoked)
packages/reactivity/__tests__/reactiveObject.bench.ts::write reactive obj, don't read 1000 computeds (invoked)
CodSpeed Performance Gauge
0%
820.8 µs
820.7 µs
write reactive map (10'000 items), read computed
packages/reactivity/__tests__/reactiveMap.bench.ts::write reactive map (10'000 items), read computed
CodSpeed Performance Gauge
0%
6.9 ms
6.9 ms
write reactive map, don't read 1000 computeds (never invoked)
packages/reactivity/__tests__/reactiveMap.bench.ts::write reactive map, don't read 1000 computeds (never invoked)
CodSpeed Performance Gauge
0%
44.7 µs
44.7 µs
write reactive map, don't read 1000 computeds (invoked)
packages/reactivity/__tests__/reactiveMap.bench.ts::write reactive map, don't read 1000 computeds (invoked)
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
write reactive obj, don't read computed (invoked)
packages/reactivity/__tests__/reactiveObject.bench.ts::write reactive obj, don't read computed (invoked)
CodSpeed Performance Gauge
0%
88.5 µs
88.5 µs
create ref
packages/reactivity/__tests__/ref.bench.ts::ref::create ref
CodSpeed Performance Gauge
0%
26.1 µs
26.1 µs
reduce *reactive* array, 1000 elements, only change first value
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *reactive* array, 1000 elements, only change first value
CodSpeed Performance Gauge
0%
6.4 ms
6.4 ms
reduce *reactive* array, 1000 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *reactive* array, 1000 elements
CodSpeed Performance Gauge
0%
24.9 ms
25 ms
reduce *reactive* array, 100 elements
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *reactive* array, 100 elements
CodSpeed Performance Gauge
0%
2.4 ms
2.4 ms
1000 reactive maps, 1 computed
packages/reactivity/__tests__/reactiveMap.bench.ts::1000 reactive maps, 1 computed
CodSpeed Performance Gauge
0%
5.8 ms
5.9 ms
write reactive obj, read computed
packages/reactivity/__tests__/reactiveObject.bench.ts::write reactive obj, read computed
CodSpeed Performance Gauge
0%
133 µs
133.4 µs
write reactive map, read computed
packages/reactivity/__tests__/reactiveMap.bench.ts::write reactive map, read computed
CodSpeed Performance Gauge
0%
132.7 µs
133 µs
write reactive map, don't read computed (never invoked)
packages/reactivity/__tests__/reactiveMap.bench.ts::write reactive map, don't read computed (never invoked)
CodSpeed Performance Gauge
0%
36.7 µs
36.8 µs
1000 reactive objs, 1 computed
packages/reactivity/__tests__/reactiveObject.bench.ts::1000 reactive objs, 1 computed
CodSpeed Performance Gauge
0%
4.4 ms
4.5 ms
reduce *reactive* array, 10 elements, only change first value
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *reactive* array, 10 elements, only change first value
CodSpeed Performance Gauge
0%
198 µs
198.9 µs
write reactive obj, don't read computed (never invoked)
packages/reactivity/__tests__/reactiveObject.bench.ts::write reactive obj, don't read computed (never invoked)
CodSpeed Performance Gauge
0%
52.6 µs
52.9 µs
update ref to trigger watcher (scheduled but not executed)
packages/runtime-core/__tests__/apiWatch.bench.ts::update ref to trigger watcher (scheduled but not executed)
CodSpeed Performance Gauge
-1%
133.3 µs
134 µs
write reactive obj property
packages/reactivity/__tests__/reactiveObject.bench.ts::write reactive obj property
CodSpeed Performance Gauge
-1%
52.5 µs
52.8 µs
update ref to trigger watchEffect (executed)
packages/runtime-core/__tests__/apiWatch.bench.ts::update ref to trigger watchEffect (executed)
CodSpeed Performance Gauge
-1%
114 µs
114.7 µs
create watchEffect
packages/runtime-core/__tests__/apiWatch.bench.ts::create watchEffect
CodSpeed Performance Gauge
-1%
58.3 µs
58.7 µs
reduce *reactive* array, 100 elements, only change first value
packages/reactivity/__tests__/reactiveArray.bench.ts::reduce *reactive* array, 100 elements, only change first value
CodSpeed Performance Gauge
-1%
743.4 µs
748.6 µs
write ref
packages/reactivity/__tests__/ref.bench.ts::ref::write ref
CodSpeed Performance Gauge
-1%
49.8 µs
50.1 µs
write reactive obj, don't read 1000 computeds (never invoked)
packages/reactivity/__tests__/reactiveObject.bench.ts::write reactive obj, don't read 1000 computeds (never invoked)
CodSpeed Performance Gauge
-1%
68.6 µs
69.1 µs
write independent ref dep
packages/reactivity/__tests__/computed.bench.ts::computed::write independent ref dep
CodSpeed Performance Gauge
-1%
33.6 µs
33.9 µs

Commits

Click on a commit to change the comparison range
Base
main
60415b5
0%
types(emits): simplify types
5860ccc
1 year ago
by Alfred-Skyblue
0%
Merge branch 'main' into types/eimts-simplify
bfa3fc9
1 year ago
by Alfred-Skyblue
0%
fix(types): fix `EmitsToProps` type error
b133c8c
1 year ago
by Alfred-Skyblue
Home Terms PrivacyDocs