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