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