Property Lookup Syntax
JavaScript performance comparison
Info
foo['bar'] vs foo.bar
Preparation code
<script>
Benchmark.prototype.setup = function() {
obj = { x: 25 };
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Array Style |
|
pending… |
C Style |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments