localeCompare (v6)

Revision 6 of this benchmark created on


Setup

var s1 = "firstbutnowitsverylonglookasaspodfkwopiekfaiosjdfoijqeoifjaoiushdfoaiwheofinasodufnaosdfjowqiejfoaiusdofiwjoeifjaowieufoqiwueoqiuweoiahjsodifjqowiueoqiewjfoqiwjdoqiwjdoqiwhfoqiwjfoqiwueoqiwueoqiwueqoiwnfoqiwhfoqiwhfoqiwejoqiwueoqiwue";
    var s2 = "secondokasaspodfkwopiekfaiosjdfoijqeoifjaoiushdfoaiwheofinasodufnaosdfjowqiejfoaiusdofiwjoeifjaowieufoqiwueoqiuweoiahjsodifjqowiueoqiewjfoqiwjdoqiwjdoqiwhfoqiwjfoqiwueoqiwueoqiwueqoiwnfoqiwhfoqiwhfoqiwejoqiwueoqiwue";

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.