jQuery-Animate-Enhanced

JavaScript performance comparison

Revision 5 of this test case created

Info

Performance comparison for: http://playground.benbarnett.net/jquery-animate-enhanced/

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="https://raw.github.com/benbarnett/jQuery-Animate-Enhanced/master/scripts/src/jquery.animate-enhanced.js">
</script>
<div id="animateme">
  Animate Me!
</div>
<script>
  $('#animateme').width(200);
</script>
<script>
Benchmark.prototype.setup = function() {
    $('#animateme').clone().attr('id', 'animateClone').addClass('animateme').insertAfter('#animateme')
};

Benchmark.prototype.teardown = function() {
    $('#animateClone').remove()
};
</script>

Preparation code output

Animate Me!

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
enhanced 2d
$('#animateClone').animate({
  opacity: '0'
}, 500);
pending…
enhanced 3d
$('#animateClone').animate({
  opacity: '0',
  useTranslate3d: true
}, 500);
pending…
normal
$('#animateClone').animate({
  opacity: '0',
  avoidTransforms: true
}, 500);
pending…
enhanced 2d leaveTransforms
$('#animateClone').animate({
  opacity: '0',
  leaveTransforms: true
}, 500);
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. Here’s a list of current revisions for this page:

0 comments

Add a comment