32 bit add

JavaScript performance comparison

Test case created by 32bitadd

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    function f() {
      return 5;
    }
   
    function g() {
      return 19;
    }
   
    function compiledCalculation() {
      var x = f();
      var y = g();
      return (x + y);
    }
   
    function compiledCalculation32() {
      var x = f() | 0;
      var y = g() | 0;
      return (x + y) | 0;
    }
};
</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
basic
compiledCalculation();
pending…
32
compiledCalculation32();
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