localeCompare (v7)

Revision 7 of this benchmark created on


Setup

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

Test runner

Ready to run.

Testing in
TestOps/sec
localeCompare
s1.localeCompare(s2)
ready
Custom
s1 < s2 ? -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.