more useful options | |
PerlMonks |
Re: cat vs. file handle speed?by the_slycer (Chaplain) |
on Mar 30, 2001 at 09:47 UTC ( [id://68283]=note: print w/replies, xml ) | Need Help?? |
Well, someone had to do it right? I haven't played with benchmarking much, but here is my contribution.. Results: Benchmark: timing 50000 iterations of OPENCAT, OPENPERL... OPENCAT: 287 wallclock secs (175.33 usr 19.89 sys + 46.32 cusr 44.78 csys = 286.32 CPU) @ 256.12/s (n=50000) OPENPERL: 171 wallclock secs (168.59 usr + 2.50 sys = 171.09 CPU) @ 292.24/s (n=50000) I dropped "system" out of it early on - due to the fact that it was at about the above levels after only 1000 iterations :-)
In Section
Seekers of Perl Wisdom
|
|