Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
microbenchmarks
/
array-from-map-values-int-small.js
blob: 85dd3fa9817bc0e5d591b1fa3d567d8bd066e2fe [
file
] [
log
] [
blame
] [
edit
]
const
map
=
new
Map
([[
'a'
,
1
],
[
'b'
,
2
],
[
'c'
,
3
],
[
'd'
,
4
],
[
'e'
,
5
],
[
'f'
,
6
],
[
'g'
,
7
]]);
function
test
(
map
)
{
const
arr
=
Array
.
from
(
map
.
values
());
return
arr
;
}
noInline
(
test
);
for
(
let i
=
0
;
i
<
1e4
;
i
++)
{
test
(
map
);
}