Amit <amit.uttam@...> writes:

> 
> Hello,
> 
> Looking at *crypto/sha/asm/sha1-x86_64.pl*, there is a measurement that
> states 5.3 cycles / byte when computing the sha1.
> 
> How was this measurement obtained? I tried using linux perf tools and
> got close to this figure but I am not sure if I am performing the
> correct test.
> 
> Thanks,
> Amit

Linux perf tools is great, however, if you just want to measure the
number of cycles for *SHA1_Update*, systemtap is a better option.

Note that in order to support user space probes, you need to compile the
latest kernel (3.5 or greater) and use the latest systemtap from git.

Running systemtap on a Core i7 2600 3.4GHz, I was able to get around
5 cycles/byte +-0.2 cycles. Which is consistent with the measurement
in sha1-x86_64.pl.

Thanks,
Amit
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to