in reply to Benchmark diamond operator
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Benchmark diamond operator
by thanos1983 (Parson) on May 09, 2017 at 14:59 UTC | |
by davido (Cardinal) on May 10, 2017 at 15:56 UTC |