herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
450 stars 151 forks source link

Question: The mode in bench #160

Closed XinwenXiang closed 1 year ago

XinwenXiang commented 1 year ago

I'm comparing the efficiency of mcl library and other cryptographic algorithm libraries, in bench.cpp and related file,such as op.hpp and fp.cpp. I found that there are different modes, I would like to ask what is the difference among these modes? image

herumi commented 1 year ago

The parameters are for comparing speeds in different modes of development, and the default parameter is the fastest. So don't worry about it.

XinwenXiang commented 1 year ago

Do you mean when I use mcl lib, it defaults to setting parameters for different development environments? However, when I run bench.exe, which mode should my comparison criteria be, the auto mode? image

herumi commented 1 year ago

Yes. Would you please use auto-mode in any environment?

XinwenXiang commented 1 year ago

Ok. After completing the benchmark efficiency comparison, I will implement a cryptographic scheme based on mcl and pay attention on the modes choosed. Sincerely thanks for your answer.

herumi commented 1 year ago

Those modes are old (for example, GMP is not used anymore). I'm refactoring them now.