Test name | Executions per second |
---|---|
With Regexp | 443440.4 Ops/sec |
With Regexp of smaller scope | 502561.5 Ops/sec |
With for-loop | 431327.5 Ops/sec |
With for-loop (initialized length) | 342282.4 Ops/sec |
With lastIndexOf and substring | 3055615.0 Ops/sec |
With lastIndexOf and slice | 2984591.0 Ops/sec |
With split, slice, join | 258609.1 Ops/sec |
With split, pop, join | 258505.6 Ops/sec |