Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Chrome 104
Windows
Desktop
2 years ago
Test name Executions per second
immer 22353.6 Ops/sec
shallow copy 1466500.4 Ops/sec
ramda lens 80531.8 Ops/sec
Immutable js test 1050879.8 Ops/sec
immutable js (toJS) 42399.0 Ops/sec
mutate 3466324.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • immer

  • shallow copy

  • ramda lens

  • Immutable js test

  • immutable js (toJS)

  • mutate