We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f13c35 commit 83502f0Copy full SHA for 83502f0
examples/benchmark/core.js
@@ -6,7 +6,6 @@ import {
6
Endpoint,
7
Entity,
8
normalize,
9
- WeakEntityMap,
10
} from './dist/index.js';
11
import { printStatus } from './printStatus.js';
12
import {
@@ -160,6 +159,12 @@ export default function addReducerSuite(suite) {
160
159
.add('setLongWithSimpleMerge', () => {
161
return controllerPop.setResponse(getProjectSimple, data);
162
})
+ .add('setSmallResponse 500x', () => {
163
+ // more commonly we'll be dealing with many usages of simple data
164
+ for (let i = 0; i < 500; ++i) {
165
+ controller.setResponse(getUser, 'gnoff', userData);
166
+ }
167
+ })
168
.on('complete', function () {
169
if (process.env.SHOW_OPTIMIZATION) {
170
console.error('reducer bench complete\n');
0 commit comments