Check this node, where the same problem was analyzed and benchmarked.
Extreme Example of TMTOWTDI
In reply to Re: efficiently printing to 30 files by cchampion in thread efficiently printing to 30 files by tbone