in reply to Re: perl printf vs C fprintf performance
in thread perl printf vs C fprintf performance

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

  • Comment on Re^2: perl printf vs C fprintf performance