jQuery-Animate-Enhanced
JavaScript performance comparison
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.
| Test | Ops/sec | |
|---|---|---|
enhanced 2d |
|
pending… |
enhanced 3d |
|
pending… |
normal |
|
pending… |
enhanced 2d leaveTransforms |
|
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:
- Revision 1: published
- Revision 2: published
- Revision 3: published
- Revision 4: published
- Revision 5: published
- Revision 6: published
- Revision 7: published
- Revision 8: published
2 comments
Can someone explain to a newb why IE appears to be seriously rocking this graph? I thought Chrome's JS engine was the smoking-est?
This is completely unexpected. By all indicators, 'enhanced' performance is /worse/ on everything except IE9 – the browser which doesn't support any of the features at play.