random access memory cycle runs ten times faster on win32 platform than on linux - strange

Joern Rennecke amylaar@spamcop.net
Mon Jul 5 18:43:00 GMT 2010


Quoting Béla MIHALIK <bela.mihalik@gmail.com>:

> If I compile it with mingw32 compiler, or VisualC++ then it gives   
> good result.
>
> Here are my results for memory bandwith test:
>
> Linux: 373.574249 MB/s
> Win32: 4468.297363 MB/s

I don't think that has anything to do with the code generated by the compiler;
rather, I think the random function you use on Windows is broken.
The bandwidth is way too high for pages misses in most loop iterations.



More information about the Gcc mailing list