Skip to content

Commit

Permalink
Increase order of magnitude
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Jul 5, 2018
1 parent 3053d90 commit 81df325
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmarks/run-headless.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const tests = ['Mount deep tree', 'Mount wide tree', 'Update dynamic styles'];
console.log('Opening benchmark app...')
await page.goto(`file://${path.join(__dirname, './dist/index.html')}`);

console.log('Running benchmarks...')
console.log('Running benchmarks... (this may take a minute; do not use your machine while these are running!)')
for (var i = 0; i < tests.length; i++) {
const test = tests[i];
// styled-components is auto-selected, so all we gotta do is select the benchmark and press "Run"
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ const tests = {
Component: Tree,
getComponentProps: () => ({ breadth: 2, components, depth: 7, id: 0, wrap: 1 }),
Provider: components.Provider,
sampleCount: 50
sampleCount: 500
})),
'Mount wide tree': createTestBlock(components => ({
benchmarkType: 'mount',
Component: Tree,
getComponentProps: () => ({ breadth: 6, components, depth: 3, id: 0, wrap: 2 }),
Provider: components.Provider,
sampleCount: 50
sampleCount: 500
})),
'Update dynamic styles': createTestBlock(components => ({
benchmarkType: 'update',
Expand All @@ -49,7 +49,7 @@ const tests = {
return { components, s: 200, renderCount: cycle, x: 0, y: 0 };
},
Provider: components.Provider,
sampleCount: 100
sampleCount: 1000
}))
};

Expand Down

0 comments on commit 81df325

Please sign in to comment.