delete vs undefined vs null (v108)

Revision 108 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
let {p, ...rest} = o;
ready
object.property = undefined
o.p = undefined;
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.