One way to speed this up is to write larger strings: fd = file('large_file.bin', 'wb') for x in xrange(51200000): fd.write('00000000') fd.close() However, I bet within an hour or so you will have a much better answer or 10. =)