jquery-chaining-document

Benchmark created on


Description

Verifying that jQuery chaining is a better idea even when attaching items to a document

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
Chaining to a document
$(document).addClass('test').removeClass('test');
ready
Individual Calls
$(document).addClass('test')
$(document).removeClass('test');
ready

Revisions

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