str-array indexof21
JavaScript performance comparison
Test case created
Preparation code
<script>
Benchmark.prototype.setup = function() {
var keyboardType = "";
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Testing in unknown unknown
| Test |
Ops/sec |
array |
(function() { if (keyboardType === "" || !keyboardType) {
var path = "/hs-dev/mailbox/118a05292e681ffe/new-ticket/7615/"; if (path.indexOf('new-ticket') > -1 && path.indexOf('mailbox') > -1) { keyboardType = "new-ticket"; }
} })();
|
pending… |
string |
if (keyboardType === "" || !keyboardType) {
var path = "/hs-dev/mailbox/118a05292e681ffe/new-ticket/7615/"; if (path.indexOf('new-ticket') > -1 && path.indexOf('mailbox') > -1) { keyboardType = "new-ticket"; }
}
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
Compare results of other browsers
0 comments