With Statement (v5)

Revision 5 of this benchmark created on


Description

http://webcloud.se/log/JavaScript-and-the-with-statement/

Preparation HTML

<script>
  var obj = {
   hello: function(){}
  },
      value;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
without with
value = obj.hello();
ready
with with
with(obj) {
 value = hello();
}
ready
with, only lookup
with(obj) {
 hello();
}
ready
only lookup
obj.hello();
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.