Sign in
webkit
/
WebKit
/
b4234713c85383e00e81c500ff74ee340e8a262a
/
.
/
JSTests
/
microbenchmarks
/
locale-compare.js
blob: e7818c9ae92fdc5e19bb4a98affab93349ea328c [
file
] [
log
] [
blame
]
(
function
(
a
,
b
)
{
var
n
=
200000
;
var
result
=
0
;
for
(
var
i
=
0
;
i
<
n
;
++
i
)
{
result
+=
a
.
localeCompare
(
b
);
}
if
(
result
!=
n
)
throw
"Error: bad result: "
+
result
;
})(
"yes"
,
"no"
);