jQuery for single CSS map vs normal

Benchmark created by Calvein on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
Normal
$('#test').css('backgroundColor', 'red');
ready
Map
$('#test').css({
 backgroundColor: 'red'
});
ready

Revisions

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

  • Revision 1: published by Calvein on