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