Skip to content

Commit

Permalink
docs(readme): update
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Dec 22, 2022
1 parent 15fa582 commit be7ce46
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ TBD

### Performance


```
naive handcrafted reducer x 3,661 ops/sec ±2.40% (96 runs sampled)
mutative - without autoFreeze x 5,437 ops/sec ±1.46% (95 runs sampled)
Expand All @@ -26,7 +25,7 @@ immer - with patches and autoFreeze x 245 ops/sec ±0.66% (90 runs sampled)
The fastest method is mutative - without autoFreeze
```

> Mutative Size: 4.11 kB with all dependencies, minified and gzipped.
> Mutative Size: 4.11 kB with all dependencies, minified and gzipped.
### Features

Expand All @@ -39,14 +38,14 @@ The fastest method is mutative - without autoFreeze

### Difference between Immer and Mutative

| - | Mutative | Immer |
| :---------------------------- | -------: | :-------------: |
| Custom shallow copy || |
| Strict mode || |
| Default common data structure || ❌(auto-freeze) |
| Non-invasive marking || |
| Automatic type inference || |
| Complete freeze data || |
| - | Mutative | Immer |
| :------------------------ | -------: | :---: |
| Custom shallow copy || |
| Strict mode || |
| No data freeze by default || |
| Non-invasive marking || |
| Automatic type inference || |
| Complete freeze data || |

## Installation

Expand Down

0 comments on commit be7ce46

Please sign in to comment.