Simple Object.create() performance test (v97)

Revision 97 of this benchmark created on


Preparation HTML

<script>
  function SomeClass() {
  };

SomeClass.prototype = {};

var obj = {};
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Object.create
var o = Object.create(obj);
ready
new
var c = new SomeClass();
ready
Object.create [runtime]
var p = Object.create({});
ready
new [runtime]
var x = function()
{
};

x.prototype = {};

var q = new x();
ready

Revisions

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