jQuery Animation : step performance
JavaScript performance comparison
Preparation code
<div id="tester">Hi</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
Benchmark.prototype.setup = function() {
var x = 100;
};
Benchmark.prototype.teardown = function() {
$('#tester').stop().css({
"opacity": 1,
"width":200
});
};
</script>
Preparation code output
Hi
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Usual |
|
pending… |
Step |
|
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 by George Pantazis
- Revision 2: published
0 comments