Call vs. Invoke (Frozen)

Benchmark created by Sebastian Markbåge on


Preparation HTML

<script>
  var call = Function.prototype.call;
  
  function x(self) {
   return self;
  }
  
  function y() {
   return this;
  }
  Object.freeze(y);
  Object.freeze(x);
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Invoke
var result = x({});
ready
Call
var result = y.call({});
ready

Revisions

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

  • Revision 1: published by Sebastian Markbåge on