testJ

JavaScript performance comparison

Test case created

Info

test

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    function print(text) {
      document.write(this.value + ' - ' + text + '<br>');
    }
   
   
};

Benchmark.prototype.teardown = function() {
    var a = {
      value: 10,
      print: print
    };
    var b = {
      value: 20,
      print: print
    };
};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
call
print.call(a, 'a');
print.call(b, 'b');
pending…
apply
print.apply(a, ['a']);
print.apply(b, ['b']);
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

0 comments

Add a comment