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