delete

Benchmark created on


Preparation HTML

<script>
  var deleted_obj = {
   one: 1,
   two: function() {},
   three: 'test'
  };
  
  delete deleted_obj.one;
  
  var obj = {
   one: 1,
   two: function() {},
   three: 'test'
  };
  obj.one = undefined;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
delete
var test = deleted_obj.two;
ready
normal
var test = obj.two;
ready

Revisions

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