Sign in
webkit
/
WebKit
/
5d120e614cd5e1a3bd32122eeff145778d550a71
/
.
/
JSTests
/
microbenchmarks
/
array-prototype-sort-medium-array-comparator.js
blob: 51427e8a5c7886f9ea4cbca21c0b008b63f5ef70 [
file
] [
log
] [
blame
]
var
comparator
=
(
a
,
b
)
=>
a
-
b
;
for
(
var
i
=
0
;
i
<
1e5
;
++
i
)
{
[
0
,
1
,
2
,
3
,
4
,
5
,
11
,
10
,
9
,
8
,
7
,
6
,
12
,
13
,
14
,
15
,
16
,
17
,
23
,
22
,
21
,
20
,
19
,
18
].
sort
(
comparator
);
}