kilis Performance-Frage

JavaScript performance comparison

Revision 2 of this test case created

Info

compare a returned object with a direct array

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    function blubbs(a, b) {
      this.a = a;
      this.b = b;
    }
};
</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
Return Array
return [1, 2];
pending…
Return object
return new blubbs(1, 2);
pending…
Return Array 2
return new Array(1, 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:

0 comments

Add a comment