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