mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-08 12:32:58 +00:00
a2cafe56fc
Simple render tree benchmarks originally developed by @lelandrichardson Fix #306
12 lines
372 B
JavaScript
12 lines
372 B
JavaScript
import deepTree from './benchmarks/deepTree';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
const node = document.querySelector('.root');
|
|
|
|
Promise.resolve()
|
|
.then(deepTree({ wrap: 4, depth: 3, breadth: 10, runs: 10 }, node))
|
|
.then(deepTree({ wrap: 1, depth: 5, breadth: 3, runs: 20 }, node))
|
|
.then(() => ReactDOM.render(<div>Complete</div>, node));
|
|
|