String vs Number as identifiers
JavaScript performance comparison
Info
To see what is faster for a lexer/parser
Preparation code
<script>
Benchmark.prototype.setup = function() {
var array = [];
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Strings |
|
pending… |
Numbers |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments