Skip to content

Commit 6a57f5f

Browse files
committed
docs(readme): update
1 parent 05123d5 commit 6a57f5f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,23 @@ The fastest method is Coaction,Zustand
103103

104104
According to the provided performance data, Coaction's performance is comparable to Zustand's performance. However, Coaction with Mutative demonstrates a significant performance advantage compared to Zustand with Immer.
105105

106-
While standard Coaction achieves approximately 5,272 operations per second (ops/sec) and standard Zustand reaches around 5,233 ops/sec, the most striking difference is observed with Zustand with Immer, which drastically drops to a mere 253 ops/sec. Furthermore, Coaction with Mutative achieves around 4,626 ops/sec. This means Coaction with Mutative is approximately 18.3 times faster than Zustand with Immer (4626 / 253 ≈ 18.3). The data clearly indicates that Coaction offers superior performance characteristics compared to Zustand, and this advantage is especially pronounced when contrasted with Zustand's Immer implementation.
106+
While standard Coaction achieves approximately 5,272 (ops/sec) and standard Zustand reaches around 5,233 (ops/sec), the most striking difference is observed with Zustand with Immer, which drastically drops to a mere 253 ops/sec. Furthermore, Coaction with Mutative achieves around 4,626 ops/sec. This means Coaction with Mutative is approximately 18.3 faster than Zustand with Immer (4626 / 253 ≈ 18.3). The data clearly indicates that Coaction offers superior performance characteristics compared to Zustand, and this advantage is especially pronounced when contrasted with Zustand's Immer implementation.
107107

108108
> We will also provide more complete benchmarking.
109109
110+
## Difference between Coaction and Zustand
111+
112+
| | `coaction` | Zustand |
113+
| --------------------------------- | ---------- | ------- |
114+
| Built-in multithreading |||
115+
| Support getter accessor |||
116+
| Built-in computed properties |||
117+
| Built-in namespace Slice |||
118+
| Built-in auto selector for state |||
119+
| Built-in multiple stores selector |||
120+
| Easy to implement middleware |||
121+
| Support `this` in getter/action |||
122+
110123
## Installation
111124

112125
You can install `@coaction/react` for React application via npm, yarn, or pnpm.
@@ -249,19 +262,6 @@ Coaction is designed to be compatible with a wide range of libraries and framewo
249262
| Persist | @coaction/persist | Ongoing |
250263
| Undo/Redo | @coaction/history | Ongoing |
251264
252-
## Difference between Coaction and Zustand
253-
254-
| | `coaction` | Zustand |
255-
| --------------------------------- | ---------- | ------- |
256-
| Built-in multithreading | ✅ | ❌ |
257-
| Support getter accessor | ✅ | ❌ |
258-
| Built-in computed properties | ✅ | ❌ |
259-
| Built-in namespace Slice | ✅ | ❌ |
260-
| Built-in auto selector for state | ✅ | ❌ |
261-
| Built-in multiple stores selector | ✅ | ❌ |
262-
| Easy to implement middleware | ✅ | ❌ |
263-
| Support `this` in getter/action | ✅ | ❌ |
264-
265265
## Credits
266266
267267
- Coaction's concept is inspired by [Partytown](https://partytown.qwik.dev/).

0 commit comments

Comments
 (0)