split-string-alex

JavaScript performance comparison

Test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    string = 'od_calendar-cell od-no-highlight-webkit col-3 row-1 od_calendarcell-disabled od-t-disabledligth od-b-bg-lightblock';
};
</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
search
string.search('od_calendarcell-disabled') > 0 && string.search('od_calendarcell-empty') > 0
pending…
indexOf
string.indexOf('od_calendarcell-disable') > 0 && string.indexOf('od_calendarcell-empty') > 0
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

Add a comment