regex vs. split · jsPerf - jsPerf: JavaScript performance playground
Kael: 2 reasons make dirname2 slow: 1. match group(s) 2. string replacement 3. string extraction so, i try to make it nearly 3 times faster. ... Compare results of other browsers Revisions You can edit these tests or add even more tests to this page by ap...