Skip to content

Commit c6a978e

Browse files
committed
docs(reamde): update perf
1 parent 5acb4fd commit c6a978e

8 files changed

Lines changed: 13 additions & 13 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,23 @@ Mutative is up to 6x faster than naive handcrafted reducer for updating immutabl
109109

110110
> Mutative passed all of Immer's test cases.
111111
112-
Measure(ops/sec) to update 50K arrays and 1K objects, bigger is better([view source](https://github.com/unadlib/mutative/blob/main/test/performance/benchmark.ts)). [Mutative v1.1.0 vs Immer v10.1.1]
112+
Measure(ops/sec) to update 50K arrays and 1K objects, bigger is better([view source](https://github.com/unadlib/mutative/blob/main/test/performance/benchmark.ts)). [Mutative v1.3.0 vs Immer v10.1.1]
113113

114114
![Benchmark](benchmark.jpg)
115115

116116
```
117-
Naive handcrafted reducer - No Freeze x 4,670 ops/sec ±0.64% (96 runs sampled)
118-
Mutative - No Freeze x 6,747 ops/sec ±0.61% (95 runs sampled)
119-
Immer - No Freeze x 5.65 ops/sec ±1.53% (19 runs sampled)
117+
Naive handcrafted reducer - No Freeze x 4,777 ops/sec ±1.06% (94 runs sampled)
118+
Mutative - No Freeze x 6,783 ops/sec ±0.71% (96 runs sampled)
119+
Immer - No Freeze x 5.72 ops/sec ±0.39% (19 runs sampled)
120120
121-
Mutative - Freeze x 1,062 ops/sec ±0.74% (95 runs sampled)
122-
Immer - Freeze x 394 ops/sec ±0.85% (93 runs sampled)
121+
Mutative - Freeze x 1,069 ops/sec ±0.75% (97 runs sampled)
122+
Immer - Freeze x 392 ops/sec ±0.66% (92 runs sampled)
123123
124-
Mutative - Patches and No Freeze x 1,011 ops/sec ±0.24% (98 runs sampled)
125-
Immer - Patches and No Freeze x 5.64 ops/sec ±0.22% (19 runs sampled)
124+
Mutative - Patches and No Freeze x 1,006 ops/sec ±1.73% (95 runs sampled)
125+
Immer - Patches and No Freeze x 5.73 ops/sec ±0.16% (19 runs sampled)
126126
127-
Mutative - Patches and Freeze x 545 ops/sec ±1.19% (94 runs sampled)
128-
Immer - Patches and Freeze x 215 ops/sec ±0.70% (86 runs sampled)
127+
Mutative - Patches and Freeze x 548 ops/sec ±1.06% (94 runs sampled)
128+
Immer - Patches and Freeze x 287 ops/sec ±0.84% (93 runs sampled)
129129
130130
The fastest method is Mutative - No Freeze
131131
```

benchmark-array.jpg

-1.22 KB
Loading

benchmark-class.jpg

-536 Bytes
Loading

benchmark-object.jpg

-562 Bytes
Loading

benchmark.jpg

576 Bytes
Loading

website/blog/releases/1.0/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const state = create(baseState, (draft) => {
9494

9595
> Mutative passed all of Immer's test cases.
9696
97-
Measure(ops/sec) to update 50K arrays and 1K objects, bigger is better([view source](https://github.com/unadlib/mutative/blob/main/test/performance/benchmark.ts)). [Mutative v1.1.0 vs Immer v10.1.1]
97+
Measure(ops/sec) to update 50K arrays and 1K objects, bigger is better([view source](https://github.com/unadlib/mutative/blob/main/test/performance/benchmark.ts)). [Mutative v1.3.0 vs Immer v10.1.3]
9898

9999
![Benchmark](img/benchmark.jpg)
100100

website/docs/extra-topics/comparison-with-immer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Mutative has fewer bugs such as accidental draft escapes than Immer, [view detai
2626

2727
> Mutative passed all of Immer's test cases.
2828
29-
Measure(ops/sec) to update 50K arrays and 1K objects, bigger is better([view source](https://github.com/unadlib/mutative/blob/main/test/performance/benchmark.ts)). [Mutative v1.1.0 vs Immer v10.1.1]
29+
Measure(ops/sec) to update 50K arrays and 1K objects, bigger is better([view source](https://github.com/unadlib/mutative/blob/main/test/performance/benchmark.ts)). [Mutative v1.3.0 vs Immer v10.1.3]
3030

3131
![Benchmark](img/benchmark.jpg)
3232

website/docs/getting-started/performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const state = create(baseState, (draft) => {
8282

8383
> Mutative passed all of Immer's test cases.
8484
85-
Measure(ops/sec) to update 50K arrays and 1K objects, bigger is better([view source](https://github.com/unadlib/mutative/blob/main/test/performance/benchmark.ts)). [Mutative v1.1.0 vs Immer v10.1.1]
85+
Measure(ops/sec) to update 50K arrays and 1K objects, bigger is better([view source](https://github.com/unadlib/mutative/blob/main/test/performance/benchmark.ts)). [Mutative v1.3.0 vs Immer v10.1.3]
8686

8787
![Benchmark](img/benchmark.jpg)
8888

0 commit comments

Comments
 (0)