With Statement (v8)

Revision 8 of this benchmark created by aaronzh on


Description

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

Preparation HTML

<script>
  var obj = {
   hello: "world"
  },
      value;
</script>

Test runner

Ready to run.

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

Revisions

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