https://github.com/markerikson/immer-perf-tests
Performance tests for immutable updates with various versions of Immer and other alternatives
https://github.com/markerikson/immer-perf-tests
Last synced: 8 months ago
JSON representation
Performance tests for immutable updates with various versions of Immer and other alternatives
- Host: GitHub
- URL: https://github.com/markerikson/immer-perf-tests
- Owner: markerikson
- Created: 2025-01-02T21:45:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-11T01:14:00.000Z (over 1 year ago)
- Last Synced: 2025-04-19T23:47:08.376Z (about 1 year ago)
- Language: TypeScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Immer Immutability Perf Benchmarks
This is an updated set of benchmarks for testing immutable update performance of various versions of Immer against a vanilla reducer, as well as `mutative` and `mutative-compat`.
I've also included a copy of Immer 10 built from the `faster-iteration-experiment` branch.
The reducers were copied from https://github.com/gentlee/state-manager-benchmarks , rather than using Immer's existing benchmarks.
Install with PNPM, and run `pnpm start` to run the benchmark.
(Note: the "freeze" variable is irrelevant with the vanilla reducer, but it was easiest to run that twice same as all the other implementations.)