http://www.perlmonks.org?node_id=1002467


in reply to Benchmark results | localizing $INPUT_RECORD_SEPARATOR vs spliting contents of file on $INPUT_RECORD_SEPARATOR

Hi ashish.kvarma,

Please check this Interpreting Benchmark's "cmpthese" and "timethese"
especially Re^3: Interpreting Benchmark 'cmpthese' and 'timethese' (time) by tye

UPDATE:
Can someone please help me to understand why is Split faster than using $INPUT_RECORD_SEPARATOR.
Profiling each of the solution, using Devel::NYTProf may also help.
Hope this helps

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me