Could you please give us some comparison data between x64-VS, x86-VS, x64-GCC and x86-GCC (all on the same CPU please)?
I think the main cause for the GCC/x64 code executing a lot faster is that some assembly optimizations kick in for x64 and that assembly is generally faster and x64 may also be faster on your CPU as this potentially can process data twice as fast. And it may even be the case that VS won't allow for SSE2 code in Win32 whereas this is default "on" for x64. BR JPM Am 08.11.2015 um 05:56 schrieb Andrés Garagiola: > Thanks for your reply JPM > > Following I answer your questions: > > >> Which version of Visual Studio are you using? > I'm using Microsoft Visual Studio 2015. > > Which platform (=hardware) are you on? Is the Linux platform the same > as the Windows platform? > >> I'm using x86 architecture to both Linux and Windows. > > >> Which algorithms are you testing? > I'm testing ECDSA key pair generations. > > >> Why do you use 32-bit for VS but 64-bit for GCC? > It is a cross platform solution. My current development environment is > a Linux x86 64 bits but I'm testing it in Windows x86 32 bits because > my solution must works in this platform too. > > Regards > > El sábado, 7 de noviembre de 2015, 12:13:17 (UTC-8), > jean-pierre.muench escribió: > > Hello Andrés, > > I'm also surprised by these performance differences. > It may be caused by the fact that GCC may optimize more than > Visual Studio and that 64-bit code may generally be faster than > the 32-bit code, because sometimes 32-bit may not have SSE2. And > sometimes there are also issues with ASM not being available due > to some obscure reasons. > > Could you please give more details? > Which version of Visual Studio are you using? > Which platform (=hardware) are you on? Is the Linux platform the > same as the Windows platform? > Which algorithms are you testing? > Why do you use 32-bit for VS but 64-bit for GCC? > > BR > > JPM > > Am 07.11.2015 um 18:57 schrieb Andrés Garagiola: >> Hello all, >> >> I'm currently compiling the CryptoPP library to two target >> environments. >> >> 1) Linux 64 using GCC compiler >> 2) Win 32 using Microsoft Visual Studio >> >> I found that the Linux 64 version is 6 times faster that the Win >> 32 version. Is it right? Do you know any specific parameter to >> improve the performance of the win 32 binary. I'm using a RELEASE >> target and setting Visual Studio optimization parameters as OX >> (-O3). >> >> I tried using MinGW too, I built a version of CryptoPP >> using http://mxe.cc/ but the performance is very similar to >> Visual Studio. Probably it is right but surprise to me this >> difference. >> >> Thanks >> Regards >> >> >> -- >> -- >> You received this message because you are subscribed to the >> "Crypto++ Users" Google Group. >> To unsubscribe, send an email to >> cryptopp-user...@googlegroups.com <javascript:>. >> More information about Crypto++ and this group is available at >> http://www.cryptopp.com. >> --- >> You received this message because you are subscribed to the >> Google Groups "Crypto++ Users" group. >> To unsubscribe from this group and stop receiving emails from it, >> send an email to cryptopp-user...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > > -- > -- > You received this message because you are subscribed to the "Crypto++ > Users" Google Group. > To unsubscribe, send an email to > cryptopp-users-unsubscr...@googlegroups.com. > More information about Crypto++ and this group is available at > http://www.cryptopp.com. > --- > You received this message because you are subscribed to the Google > Groups "Crypto++ Users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to cryptopp-users+unsubscr...@googlegroups.com > <mailto:cryptopp-users+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout. -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.