Test name | Executions per second |
---|---|
With Regexp | 504875.6 Ops/sec |
With Regexp of smaller scope | 514035.5 Ops/sec |
With for-loop | 482238.9 Ops/sec |
With for-loop (initialized length) | 386493.9 Ops/sec |
With lastIndexOf and substring | 3389632.0 Ops/sec |
With lastIndexOf and slice | 3290282.0 Ops/sec |
With split, slice, join | 239678.3 Ops/sec |
With split, pop, join | 246720.3 Ops/sec |