Kimbo vs jQuery data method

JavaScript performance comparison

Revision 5 of this test case created by Denis

Preparation code

<script src="http://kimbojs.com/lib/kimbo.js">
</script>
<script src="https://code.jquery.com/jquery-2.0.3.js">
</script>

<div id="panel"></div>

<script>
  window.$k = Kimbo;
  window.$j = jQuery;
</script>
      
<script>
Benchmark.prototype.setup = function() {
  var $k_panel = $k('#panel');
  var $j_panel = $j('#panel');

};
</script>

Preparation code output

<script src="https://code.jquery.com/jquery-2.0.3.js"> </script> <div id="panel"></div> <script> window.$k = Kimbo; window.$j = jQuery; </script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Kimbo .data()
$k_panel.data('isOpen', false);
pending…
jQuery .data()
$j_panel.data('isOpen', false);
pending…

Compare results of other browsers

Revisions

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

0 Comments