[botan-devel] Set the cpu speed in the environment or command line for ./botan speed

Jack Lloyd jack at randombit.net
Thu Mar 8 08:58:25 EST 2018


On Thu, Mar 08, 2018 at 08:54:53AM -0500, Jeffrey Walton wrote:

> Here's what I see on my LeMaker HiKey:
> 
>     $ ./botan speed --msec=3000 SHA-1 SHA-224 SHA-256
>     SHA-160 hash buffer size 1024 bytes: 664.520 MiB/sec (1993.561 MiB
> in 3000.001 ms)
>     SHA-224 hash buffer size 1024 bytes: 599.788 MiB/sec (1799.363 MiB
> in 3000.000 ms)
>     SHA-256 hash buffer size 1024 bytes: 599.463 MiB/sec (1798.391 MiB
> in 3000.001 ms)
> 
> Notice it is missing a cpb measurement.
> 
> If I can, say --cpu-clock-freq=1.2 (GiHz), then Botan can calculate
> the cpb for me.
> 
> To be clear, I'm only interested in the cpb count. That is the way I
> measure an implementation's performance.

Ah ok now I understand, yes lacking a working cycle counter at all,
being able to specify the clock rate for reporting cpb makes perfect
sense. Thanks!

Jack


More information about the botan-devel mailing list