Sign in
webkit
/
WebKit
/
247b0314320d499ae788b6ea993aa1d98e2d607e
/
.
/
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"
);