Sign in
webkit
/
WebKit
/
6372d18ed2fb0e5306b33bd85febb537c2fcf56a
/
.
/
JSTests
/
microbenchmarks
/
object-keys-map-values.js
blob: 19115e3dd7f6fd4b5b74205aa84e29f17213b74b [
file
] [
log
] [
blame
]
var
object
=
{};
for
(
var
i
=
0
;
i
<
1e3
;
++
i
)
{
object
[
i
+
'prop'
]
=
i
;
}
function
test
(
object
)
{
return
Object
.
keys
(
object
).
map
(
key
=>
object
[
key
]);
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
1e3
;
++
i
)
test
(
object
);