delete vs undefined vs null (v105)

Revision 105 of this benchmark created by Rick Zhou on


Setup

var o = {
     p: 1
  };
  var m = new Map();
  m.set('p',1);

Test runner

Ready to run.

Testing in
TestOps/sec
delete map
m.delete('p')
ready
delete object.property
delete o.p;
ready
delete object["property"]
delete o["p"];
ready

Revisions

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