is javascript retarded with constants: 2
JavaScript performance comparison
Info
welcome back to another game of 'is javascript retarded with constants'
I am your host, the man they call ghost
Preparation code
<script>
Benchmark.prototype.setup = function() {
var arr=[1,2,3];
var A=0,B=1,C=2;
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
use numbers |
|
pending… |
constants |
|
pending… |
inline constants |
|
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:
- Revision 1: published by crazy ojifewojifewojifewojifew
- Revision 2: published by Stefano Sergio
0 comments