Test name | Executions per second |
---|---|
With Regexp | 378342.7 Ops/sec |
With Regexp of smaller scope | 319694.1 Ops/sec |
With for-loop | 6490015.0 Ops/sec |
With for-loop (initialized length) | 5584310.0 Ops/sec |
With lastIndexOf and substring | 15987100.0 Ops/sec |
With lastIndexOf and slice | 16107840.0 Ops/sec |
With split, slice, join | 110381.5 Ops/sec |
With split, pop, join | 122345.0 Ops/sec |