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