Test name | Executions per second |
---|---|
With Regexp | 809765.4 Ops/sec |
With Regexp of smaller scope | 792089.5 Ops/sec |
With for-loop | 695800.7 Ops/sec |
With for-loop (initialized length) | 552966.3 Ops/sec |
With lastIndexOf and substring | 4937035.0 Ops/sec |
With lastIndexOf and slice | 4837069.0 Ops/sec |
With split, slice, join | 408307.1 Ops/sec |
With split, pop, join | 412831.0 Ops/sec |