benchmarks / data operations / update-deep
Data operations
update — deep immutable patch
Surgical immutable update of a nested object (no Proxy).
Surgical immutable update of a nested object (no Proxy).
Reproduce it
pnpm bench:update
Clone the repository, install with pnpm, and run the command above. mitata prints avg times and heap per operation; results land in bench/results (gitignored).
| Suite | Implementation | Avg time | Heap/op |
|---|---|---|---|
| update — deep immutable patch | jit | 18.41 ns | 120 b |
| immer | 2.22 µs | 3.49 KB |
mitata · Node 22.17.1 · linux-x64 · AMD Ryzen 7 5800H · captured 2026-07-11Zod 4.4.3 · TypeBox 0.34 · typia 12 · fast-json-stringify 7