Skip to content
Myr

Pull out freeze values

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Mark Erikson · committed by Mark Erikson · parent 3a8ea32 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:perf-testing/immutability-benchmarks.mjs+4 added-1 removed
246 unmodified lines
247 vanilla: vanillaReducer,248 ...mapValues(immerProducers, createImmerReducer)249}250251const freeze = [false, true]252253function createBenchmarks() {254 // All single-operation benchmarks (fresh state each time)255 for (const action in actions) {256 summary(function() {257 bench(`$action: $version (freeze: $freeze)`, function*(args) {258 const version = args.get("version")
13 unmodified lines
272273 yield benchMethod274 }).args({275 version: Object.keys(reducers),273 freeze: [false, true],276 freeze,277 action: [action]278 })279 })280 }
9 unmodified lines