React vs Jquery (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="http://fb.me/react-with-addons-0.8.0.min.js"></script>

<div id="test">

</div>

Setup

var Hello = React.createClass({
        render: function() {
            return React.DOM.div({}, this.props.greet);
        }
    });

Teardown


    $("#test").empty()
  

Test runner

Ready to run.

Testing in
TestOps/sec
jquery
$("#test").append('<div data-reactid=".r[42sfx]">Hello World</div>')
ready
react
React.renderComponent(Hello({greet: 'Hello World'}), document.getElementById('test'));
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.