2012年12月28日16时40分22秒
JavaScript performance comparison
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="d1">
</div>
<div id="d2">
</div>
<div id="d3">
</div>
<div id="d4">
</div>
<div id="d5">
</div>
<script>
Benchmark.prototype.setup = function() {
var div = $('div'),
d1 = $("#d1"),
d2 = $("#d2"),
d3 = $("#d3"),
d4 = $("#d4"),
d5 = $("#d5"),
};
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
1 |
|
pending… |
2 |
|
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 2012年12月24日11时41分33秒
- Revision 2: published
0 comments