Function Calling

Benchmark created by Daniel Baulig (Ba. Thesis) on


Preparation HTML

<script>
  var func = function() {
   var foo = 10;
   var bar = 10;
   var result = foo * bar;
  };
  
  var obj = {
   method: func
  };
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Inline
var foo = 10;
var bar = 10;
var result = foo * bar;
ready
Anonymous
(function() {
 var foo = 10;
 var bar = 10;
 var result = foo * bar;
})();
ready
Stored
func();
ready
Method
obj.method();
ready

Revisions

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

  • Revision 1: published by Daniel Baulig (Ba. Thesis) on