eval vs. jquery selector (v97)

Revision 97 of this benchmark created on


Description

Compare the speed of jquery selector to eval

Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script>

Setup

var funct = function() { console.log("testing") };
    var notFunct = "Hello!"

Test runner

Ready to run.

Testing in
TestOps/sec
eval
eval(funct).apply(this,null);
ready
jquery
$(funct).call(this,null);
ready

Revisions

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