Sign in
webkit
/
WebKit
/
9f4898815212c3069305f0eb8e79728e1e77a82a
/
.
/
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
);
}