32 bit add
JavaScript performance comparison
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.
| Test | Ops/sec | |
|---|---|---|
basic |
|
pending… |
32 |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments