comparation on blucle
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var obj = {
"a": "12",
"b": "3s",
"c": "a2",
"d": "4x",
"e": "d3",
"f": "12",
"g": "3s",
"h": "a2",
"i": "4x",
"j": "d3",
"k": "12",
"l": "3s",
"m": "a2",
"n": "4x",
"o": "d3",
"p": "4s",
"q": "12",
"r": "3s",
"s": "a2",
"t": "4x",
"u": "12",
"w": "3s",
"x": "a2",
"y": "4x",
"z": "d3"
};
var vC = "c";
var vV = true;
var f1 = function() {};
var f2 = function() {};
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
on |
|
pending… |
out |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments