Test case name | Result |
---|---|
prototype function + "this" | |
object function + closure | |
capture method | |
bind function | |
wrap function | |
prototype function + "this" (remove 1 scope) |
Test name | Executions per second |
---|---|
prototype function + "this" | 306282000.0 Ops/sec |
object function + closure | 148630300.0 Ops/sec |
capture method | 145425700.0 Ops/sec |
bind function | 130681200.0 Ops/sec |
wrap function | 148726900.0 Ops/sec |
prototype function + "this" (remove 1 scope) | 178469800.0 Ops/sec |