[Numpy-discussion] tofile speed
Charles R Harris
Wed Jul 25 09:58:22 CDT 2007
On 7/25/07, Lars Friedrich <firstname.lastname@example.org> wrote:
> I tried the following:
> ####### start code
> a = N.random.rand(1000000)
> myFile = file('test.bin', 'wb')
> for i in range(100):
> ####### end code
> And this gives roughly 50 MB/s on my office-machine but only 6.5 MB/s on
> the machine that I was reporting about.
> Both computers use Python 2.4.3 with enthought 1.0.0 and numpy 1.0.1
> So I think I will go and check the harddisk-drivers. array.tofile does
> not seem to be the problem and actually seems to be very fast. Any other
You might check what disk controllers the disks are using. I got an almost
x10 speedup moving some disks from a DELL PCI CERC board to the onboard SATA
and using software raid. Sometimes DMA isn't enabled, but that is pretty
rare these days.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion