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?)
| Test | Ops/sec | |
|---|---|---|
| Normal |  | |
| Exit Early |  | |
| Async |  | |
| Error |  | |
| Comments |  | |
          You can edit these tests or add even more tests to this page
          by appending /edit to the URL.
        
0 comments