This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: random access memory cycle runs ten times faster on win32 platform than on linux - strange
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: BÃla MIHALIK <bela dot mihalik at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 05 Jul 2010 14:43:09 -0400
- Subject: Re: random access memory cycle runs ten times faster on win32 platform than on linux - strange
- References: <AANLkTilOFdLcQOZVvY-A1iepYKhDWPxnGJZErYpJk-mF@mail.gmail.com>
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.