test v8 hidden class when delete property

Benchmark created by nwind on


Test runner

Ready to run.

Testing in
TestOps/sec
without delete
function Foo() {}
Foo.prototype.x = 1;

var foo = new Foo();

var result = 0;
for (var i = 0; i < 100; i++) {
    result = result + foo.x;
}
ready
with delete
function Foo() {}
Foo.prototype.x = 1;
Foo.prototype.y = 2;

delete Foo.prototype.y;

var foo = new Foo();

var result = 0;
for (var i = 0; i < 100; i++) {
    result = result + foo.x;
}
ready

Revisions

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