Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance #4

Open
tevador opened this issue Aug 6, 2020 · 1 comment
Open

Performance #4

tevador opened this issue Aug 6, 2020 · 1 comment

Comments

@tevador
Copy link

tevador commented Aug 6, 2020

I haven't been able to reproduce the performance figures that are listed in the README.

I used Intel i5-2500K (Sandy Bridge from 2011) running at 3.29 GHz (Turbo disabled), Windows 10 and binaries built with Visual Studio 2019 in x64 Release configuration.

Snowshoe Unit Tester: EC Scalar Multiplication
RDTSC instruction runs at 3.29252 GHz
+ ec_elligator: `33772` median cycles, `10.3136` avg usec
+ ec_mul_gen: `114412` median cycles, `34.8923` avg usec
+ ec_mul: `337620` median cycles, `102.747` avg usec
+ ec_simul_gen: `389280` median cycles, `118.303` avg usec
+ ec_simul: `469072` median cycles, `142.706` avg usec

This is 2-2.5 times slower than the presented cycle counts for Sandy Bridge. Any explanation for this discrepancy? Are some optimizations not enabled for Windows/MSVC?

@catid
Copy link
Owner

catid commented Sep 12, 2020

Not sure why! These days I'd recommend not to use this library and instead use one of the more active projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants