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
In reply to Re: Benchmark results | localizing $INPUT_RECORD_SEPARATOR vs spliting contents of file on $INPUT_RECORD_SEPARATOR
by 2teez
in thread Benchmark results | localizing $INPUT_RECORD_SEPARATOR vs spliting contents of file on $INPUT_RECORD_SEPARATOR
by ashish.kvarma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |