mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-30 23:23:35 +08:00
Includes a 'css-modules' implementation of the nested trees to act as a baseline for comparison.
22 lines
466 B
JavaScript
22 lines
466 B
JavaScript
import createRenderBenchmark from '../modules/createRenderBenchmark';
|
|
import NestedTree from '../modules/NestedTree';
|
|
import React from 'react';
|
|
|
|
const renderDeepTree = (label, components) => createRenderBenchmark({
|
|
name: `Deep tree [${label}]`,
|
|
runs: 20,
|
|
getElement() {
|
|
return (
|
|
<NestedTree
|
|
breadth={3}
|
|
components={components}
|
|
depth={6}
|
|
id={0}
|
|
wrap={1}
|
|
/>
|
|
);
|
|
}
|
|
});
|
|
|
|
export default renderDeepTree;
|