jQuery css styling
JavaScript performance comparison
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<ul>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
</ul>
<script>
Benchmark.prototype.setup = function() {
var $li = $('ul').find('li');
};
</script>
Preparation code output
- hello
- hello
- hello
- hello
- hello
- hello
- hello
- hello
- hello
- hello
- hello
- hello
- hello
- hello
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
css parameter (short hex) |
|
pending… |
css parameter (full hex) |
|
pending… |
css map (short hex) |
|
pending… |
css map (full hex) |
|
pending… |
css map multiple properties |
|
pending… |
css parameter multiple properties |
|
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 Brian Cerceo
- Revision 2: published
0 comments