jQuery.type vs native typeof

Benchmark created by ryanve on


Preparation HTML

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

Setup

var testJquery = function() { return $.type(1); };
    var testTypeof = function() { return typeof(1); };

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery.type
testJquery();
ready
typeof
testTypeof();
ready

Revisions

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