Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Firefox 56
Windows 7
Desktop
5 years ago
Test name Executions per second
prototype function + "this" 334907800.0 Ops/sec
object function + closure 160006100.0 Ops/sec
capture method 164398800.0 Ops/sec
bind function 166067800.0 Ops/sec
wrap function 165924400.0 Ops/sec
prototype function + "this" (remove 1 scope) 282148200.0 Ops/sec
Script Preparation code:
Tests:
  • prototype function + "this"

  • object function + closure

  • capture method

  • bind function

  • wrap function

  • prototype function + "this" (remove 1 scope)