I've run the latest version of master and constexpr branches against
each other and measured the time of "cryptopp.exe v" using Powershell's
Measure-Command on my i7-6500U (slight background noise).

Here are the results:

Configuration
        constexpr Time
        master Time
x86 Debug
        4s 57ms
        4s 344ms
x64 Debug
        9s 810ms
        9s 245ms
x86 Release
        doesn't finish!? (RDRAND / RDSEED)      doesn't finish!? (RDRAND / 
RDSEED)
x64 Release
        1s 759ms
        1s 735ms

All the times should be taken +-500ms for significance.

(and yes, I'm gonna fire up my debugger to find out why x86/Release
doesn't work)

BR

JPM


Am 06.09.2016 um 15:06 schrieb Jeffrey Walton:
>
>     But I get a new (unrelated) compiler warning:
>
>     rw.cpp(210): warning C4189: 'n': local variable is initialized but
>     not referenced
>
>
>
> Thanks again Marcel. The warning was cleared at
> http://github.com/weidai11/cryptopp/commit/59aad798ebb5302c9b62285c3a9a0d2878cb68e3
> . Its sitting on the dev-branch at the moment.
>
> I also changed the define for CRYPTOPP_CONSTANT at
> http://github.com/weidai11/cryptopp/commit/9205efda02a788084a332bff06733572a338b132
> :
>
> +#if defined(CRYPTOPP_CXX11_CONSTEXPR)
> +# undef CRYPTOPP_CONSTANT
> +# define CRYPTOPP_CONSTANT(x) constexpr static int x;
> +#endif
>
> It did not make a difference under GCC, but it sped up Clang by about
> 100ms to 150ms.
>
> The Visual Studio folks should test this change, too.
>
> Jeff
> -- 
> -- 
> 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.

Reply via email to