Sign in
webkit
/
WebKit
/
ed2f911158342d574839e821f89b5479112fb659
/
.
/
JSTests
/
microbenchmarks
/
in-by-id-match.js
blob: d287c86ea55b5b49c81733569270b03e8b7c8ae4 [
file
] [
log
] [
blame
]
function
test
(
object
)
{
if
(
"cocoa"
in object
)
return
object
.
cocoa
;
return
0
;
}
noInline
(
test
);
var
o1
=
{
cocoa
:
42
};
var
o2
=
{
cappuccino
:
41
};
for
(
var
i
=
0
;
i
<
1e6
;
++
i
)
{
test
(
o1
);
test
(
o2
);
}