benchmark.js
test page
JavaScript performance comparison
Info
This is just a test document for
benchmark.js
.
Preparation code
<div id="foo">Foo!</div>
<script>
var arr = [1, 5, 4, 2, 3],
i = 1;
</script>
Preparation code output
Foo!
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Test | Ops/sec | |
---|---|---|
Sort ascending |
|
|
Sort descending |
|
|
Don’t sort at all |
|
|
Error |
|
|
Just another unrelated test |
|
Results
You can edit these tests or add even more tests to this page
by appending /edit
to the URL.