It's probably more to do with perl on windows rather than the individual functions like substr and rindex.
If you notice, all of the wallclock timings are quite a bit longer.
If you notice, all of the wallclock timings are quite a bit longer.