Static Object Methods

Benchmark created by SLaks on


Test runner

Ready to run.

Testing in
TestOps/sec
Separate
for (var i = 0; i < 10000; i++) {
 var SomeStaticObject = {};
 SomeStaticObject.render = function() {
  return 5;
 };
 SomeStaticObject.render();
}
ready
Inline
for (var i = 0; i < 10000; i++) {
 var SomeStaticObject = {
  render: function() {
   return 5;
  }
 };
 SomeStaticObject.render();
}
ready

Revisions

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