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