wrap

Benchmark created by SamuraiJack on


Preparation HTML

<script>
  var inside = function() {
   return arguments.callee.caller
  }
  
  
  var wrapper = function() {
   return inside.call(this)
  }
  
  var original = function() {}
  var modifier = function() {}
  
  var override = function() {
  
   var beforeSUPER = this.SUPER
  
   this.SUPER = original
  
   var res = modifier.apply(this, arguments)
  
   this.SUPER = beforeSUPER
  
   return res
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
direct
wrapper.call({})
ready
wrapped
override.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 SamuraiJack on