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