Test name | Executions per second |
---|---|
With Regexp | 317980.0 Ops/sec |
With Regexp of smaller scope | 303958.2 Ops/sec |
With for-loop | 361611.0 Ops/sec |
With for-loop (initialized length) | 297115.7 Ops/sec |
With lastIndexOf and substring | 2634944.0 Ops/sec |
With lastIndexOf and slice | 2634644.0 Ops/sec |
With split, slice, join | 246507.2 Ops/sec |
With split, pop, join | 251590.1 Ops/sec |