Rename 'performance' to 'benchmarks'

This commit is contained in:
Nicolas Gallagher
2017-05-25 21:44:01 -07:00
parent 54af7e9da2
commit a84ecefa5d
57 changed files with 4 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
import benchmark from './benchmark';
import ReactDOM from 'react-dom';
const node = document.querySelector('.root');
const createRenderBenchmark = ({ description, getElement, name, runs }) => () => {
const setup = () => {};
const teardown = () => ReactDOM.unmountComponentAtNode(node);
return benchmark({
name,
description,
runs,
setup,
teardown,
task: () => ReactDOM.render(getElement(), node)
});
};
export default createRenderBenchmark;