Avatar for the gadget-inc user
gadget-inc
mobx-quick-tree
BlogDocsChangelog

Don't spread/allocate empty arrays when fast instantiating

#127Merged
Comparing
empty-array-opt
(
83639d5
) with
main
(
ac90059
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
12
New
0
Dropped
0
Ignored
4

Benchmarks

Passed

instantiating a small root
bench/instantiation.benchmark.ts::instantiating a small root
CodSpeed Performance Gauge
+2%
29.2 µs
28.5 µs
accessing unmemoized getter properties of a class model
bench/property-access.benchmark.ts::accessing unmemoized getter properties of a class model
CodSpeed Performance Gauge
+1%
16.1 µs
15.9 µs
accessing unmemoized null property of a class model
bench/property-access.benchmark.ts::accessing unmemoized null property of a class model
CodSpeed Performance Gauge
+1%
11 µs
10.9 µs
accessing memoized null property of a class model
bench/property-access.benchmark.ts::accessing memoized null property of a class model
CodSpeed Performance Gauge
0%
10.4 µs
10.3 µs
accessing memoized getter properties of a class model
bench/property-access.benchmark.ts::accessing memoized getter properties of a class model
CodSpeed Performance Gauge
0%
10.8 µs
10.7 µs
mobx-quick-tree ClassModel
bench/cross-framework.benchmark.ts::mobx-quick-tree ClassModel
CodSpeed Performance Gauge
0%
37.9 µs
37.9 µs
instantiating one reference
bench/create-references.benchmark.ts::instantiating one reference
CodSpeed Performance Gauge
0%
35 µs
35 µs
instantiating a diverse root
bench/instantiation.benchmark.ts::instantiating a diverse root
CodSpeed Performance Gauge
0%
44 µs
44 µs
instantiating deep references
bench/create-references.benchmark.ts::instantiating deep references
CodSpeed Performance Gauge
0%
79.1 µs
79.2 µs
mobx-state-tree ClassModel
bench/cross-framework.benchmark.ts::mobx-state-tree ClassModel
CodSpeed Performance Gauge
-1%
1.1 ms
1.1 ms
instantiating a large union
bench/create-union.benchmark.ts::instantiating a large union
CodSpeed Performance Gauge
-1%
56.5 µs
56.9 µs
instantiating a large root
bench/instantiation.benchmark.ts::instantiating a large root
CodSpeed Performance Gauge
-8%
2.5 ms
2.7 ms

Ignored

mobx-quick-tree types.modelIgnored
bench/cross-framework.benchmark.ts::mobx-quick-tree types.model
CodSpeed Performance Gauge
-3%
149.6 µs
153.8 µs
mobx-state-treeIgnored
bench/cross-framework.benchmark.ts::mobx-state-tree
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
plain es6Ignored
bench/cross-framework.benchmark.ts::plain es6
CodSpeed Performance Gauge
-1%
16.8 µs
16.9 µs
plain mobxIgnored
bench/cross-framework.benchmark.ts::plain mobx
CodSpeed Performance Gauge
-3%
262.6 µs
271.5 µs

Commits

Click on a commit to change the comparison range
Base
main
ac90059
-0.45%
Don't spread/allocate empty arrays when fast instantiating
83639d5
2 months ago
by airhorns
© 2025 CodSpeed Technology
Home Terms Privacy Docs