Test name | Executions per second |
---|---|
Delete | 3989873.8 Ops/sec |
Set undefined | 1466996.6 Ops/sec |
var obj = {a:1, b:2, c:3, d:4};
delete obj.a;
delete obj.b;
delete obj.c;
delete obj.d;
obj.a = undefined;
obj.b = undefined;
obj.c = undefined;
obj.d = undefined;