delete vs undefined vs null (v107)

Revision 107 of this benchmark created by Marcell Toth on


Setup

var o = {
     p: 1,
     p2: 2,
     p3: 3,
     p4: 4
  };

Test runner

Ready to run.

Testing in
TestOps/sec
spread / rest
{p, ...rest} = o;
ready
delete object.property
delete o.p;
ready
object.property = undefined
o.p = undefined;
ready

Revisions

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