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