jquery - Assign Plugins

Benchmark created by Theodor on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
With jQuery.extend()
$.fn.extend({
plugin: function() {},
anotherplugin: function() {},
lastplugin: function() {}
})
ready
Without jQuery.extend()
$.fn.plugin = function() {}
$.fn.anotherplugin= function() {}
$.fn.lastplugin= function() {}
ready

Revisions

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