Benchmark.js test page
JavaScript performance comparison
Info
This is just a test document for Benchmark.js.
Preparation code
<div>Lorem ipsum</div>
<script>
var arr = [1, 5, 4, 2, 3];
function init() {
window.console && console.log('init called');
}
</script>
<script>
Benchmark.prototype.setup = function() {
window.foo = 42;
var x = arr;
};
Benchmark.prototype.teardown = function() {
window.foo = 24;
};
</script>
Preparation code output
Lorem ipsum
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Normal |
|
pending… |
Exit Early |
|
pending… |
Async |
|
pending… |
Comments |
|
pending… |
TypeError |
|
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