localeCompare (v24)

Revision 24 of this benchmark created on


Setup

var s1 = "first";
    var s2 = "second";

Test runner

Ready to run.

Testing in
TestOps/sec
===
s1 === s2;
ready
Custom
s1 < s1 ? -1 : s1 > s2 ? 1 : 0;
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.