![]() |
|
Just another Perl shrine | |
PerlMonks |
Re^2: perl printf vs C fprintf performanceby decnartne (Beadle) |
on Mar 14, 2005 at 20:05 UTC ( [id://439422]=note: print w/replies, xml ) | Need Help?? |
agreed - Benchmark probably would have been more accurate for times... I did actually use it in the original script to debug where my performance hit was. I found that the actual writing (the 8 or so printf statements) took ~8 seconds whereas the C app took ~2 All that aside - I'm still somewhat at a loss (surprise!) as to why writing ~ 1M lines in a file w/ C fprintf is so much faster... decnartne ~ entranced
In Section
Seekers of Perl Wisdom
|
|