Skip to content

Instantly share code, notes, and snippets.

@gaperton
Created July 15, 2015 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaperton/c6af4ebea72f747a5c48 to your computer and use it in GitHub Desktop.
Save gaperton/c6af4ebea72f747a5c48 to your computer and use it in GitHub Desktop.
var z = +new Date();
for( var j = 0; j < 100; j++ ){
var elements = [];
for( var i = 0; i < 1000; i++ )
elements.push(
<div key={i} className="row">
<div className="col">a</div>
<div className="col">b</div>
<div className="col">c</div>
</div>
);
React.render( <div> { elements } </div>, document.getElementById( 'perf-1' ) );
}
console.log( new Date() - z );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment