ARM public key benchmark

Torbjorn Granlund tg at gmplib.org
Thu Apr 4 23:27:17 CEST 2013


nisse at lysator.liu.se (Niels Möller) writes:

  
  $ ./speed-before -o cycles-broken  -C -s 10,100,200,300,1000-1010  mpn_addmul_1.17 mpn_submul_1.17
  overhead 51.03 cycles, precision 1000 units of 1.00e-06 secs, CPU freq 1694.10 MHz
          mpn_addmul_1.17 mpn_submul_1.17
  10           #28.9063       33.1513
  100          #34.7821       36.6499
  200           34.3840       #4.1421
  300           #4.0184        4.0937
  1000          #3.9989        4.0198
  1001          #3.9999        4.0208
  1002          #3.9995        4.0205
  1003          #3.9966        4.0179
  1004          #3.9988        4.0212
  1005          #3.9962        4.0208
  1006          #3.9972        4.0182
  1007          #3.9969        4.0229
  1008          #3.9965        4.0190
  1009          #3.9976        4.0191
  1010          #3.9973        4.0197
  
  With the new submul_1, I get a 0.5% improvement, to 4 - epsilon:
  
  $ ./speed-after -o cycles-broken  -C -s 10,100,200,300,1000-1010  mpn_addmul_1.17 mpn_submul_1.17
  overhead 51.03 cycles, precision 1000 units of 1.00e-06 secs, CPU freq 1694.10 MHz
          mpn_addmul_1.17 mpn_submul_1.17
  10           #28.9159       29.7557
  100            4.0788       #4.0694
  200            4.0351       #4.0264
  300            4.0198       #4.0147
  1000           3.9989       #3.9976
  1001           3.9963       #3.9950
  1002          #3.9959        3.9995
  1003          #3.9992        3.9992
  1004           3.9988       #3.9965
  1005           4.0012       #3.9962
  1006          #3.9972        3.9995
  1007          #3.9969        3.9969
  1008           3.9965       #3.9962
  1009          #3.9976        3.9976
  1010           3.9987       #3.9973
  
  Some lines look totally bogus. Is it doing cpu frequency scaling or
  something like that?

It does, since it is a laptop.  I pass a huge -p argument to give the
system time to rev up.

  cpufreq-info is not installed (looks like a debian system, so apt-get
  install cpufrequtils). And then frequency used by speed is probably
  slightly off, the web page says 1700, and the 1694.1 number is from
  the bogomips measurement at boot time; I guess all values really are
  slightly above 4 c/l.
  
root at parma:~# apt-get install cpufrequtils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package cpufrequtils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'cpufrequtils' has no installation candidate

(Same happens for mercurial.)

-- 
Torbjörn


More information about the gmp-devel mailing list