The <> diamond operator, acting upon @ARGV is going to be tricky to get right, if you want to re-read the same file multiple times to benchmark. Better off using open to manually act upon the filenames passed into @ARGV. That way you can re-open for each run, or (probably faster), open once, tell, and seek to reset between iterations.
There are faster alternatives than <>, but if your drive is a mechanical drive, shifting over to SSD is the biggest win.
Dave
In reply to Re: Benchmark diamond operator
by davido
in thread Benchmark diamond operator
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |