lookup test
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var d1 = {
keyA1: { keyB: 1 },
keyA2: { keyB: 1 },
keyA3: { keyB: 1 }
};
var tmp = { keyB: 1 };
var d2 = {
keyA1: tmp,
keyA2: tmp,
keyA3: tmp
}
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
dict lookup |
|
pending… |
dict lookup via tmp |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments