soonwtf123
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var map = {
"ab": "ok1",
"ac": "ok2",
"ad": "ok3",
"ae": "ok4",
"af": "ok5",
"ag": "ok6",
"ah": "ok7",
"ai": "ok8",
"aj": "ok9",
"ak": "ok10",
"al": "ok11",
"am": "ok12",
"an": "ok13"
};
var thing = "ai";
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
map |
|
pending… |
if else |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments