Test name | Executions per second |
---|---|
slice | 10781390.0 Ops/sec |
substr | 10849760.0 Ops/sec |
substring | 10773314.0 Ops/sec |
var example = 'there is no spoon'
var result = example.slice(10)
var result = example.substr(10)
var result = example.substring(10)