Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD on ODROID-C1



On Thu, Mar 05, 2015 at 10:04:44AM +0000, Richard Earnshaw wrote:
> > It's probably that the arm-specific assembler routines
> > in libcrypto are not compiled in.
> > 
> > 
> 
> Or more likely, the x86 core is using crypto instructions.  For ARM you
> need an ARMv8 based core to get those.

But also the other asm functions help a lot - I have commited changes to
-current to use them for the in-tree libcrypto, and filed a PR for the
pkgsrc version which gets configury quite wrong.

For me the difference we tremendous, e.g. armv7hfeb:

before that change:

..
sha256            2638.85k     6512.78k    11939.81k    15101.45k    16381.21k
sha512             819.29k     3287.10k     4852.51k     6695.12k     7533.37k
whirlpool          752.05k     1533.89k     2484.31k     2940.68k     3110.78k
aes-128 ige      14866.43k    15832.19k    16100.27k    16169.67k    16196.21k
aes-192 ige      12934.60k    13625.17k    13841.27k    13895.10k    13918.04k
aes-256 ige      11424.39k    11974.46k    12142.24k    12177.78k    12190.02k
ghash            10985.28k    11330.29k    11469.48k    11510.72k    11515.07k
                  sign    verify    sign/s verify/s
rsa  512 bits 0.003123s 0.000367s    320.2   2722.9
rsa 1024 bits 0.016195s 0.000925s     61.7   1081.2
rsa 2048 bits 0.097184s 0.002909s     10.3    343.8
rsa 4096 bits 0.644375s 0.010122s      1.6     98.8
..

and after:

..
sha256            3570.41k     7732.39k    12904.66k    15519.36k    16484.70k
sha512             905.88k     3621.65k     5032.65k     6795.82k     7574.20k
whirlpool          753.18k     1537.40k     2493.24k     2949.39k     3121.67k
aes-128 ige      20763.57k    22570.61k    23072.15k    23178.36k    23306.24k
aes-192 ige      18185.44k    19637.20k    20065.95k    20202.06k    20229.61k
aes-256 ige      16251.52k    17411.30k    17759.60k    17851.96k    17917.94k
ghash            43973.45k    51751.59k    54149.19k    54710.71k    54968.05k
                  sign    verify    sign/s verify/s
rsa  512 bits 0.001279s 0.000221s    782.1   4521.4
rsa 1024 bits 0.005799s 0.000442s    172.4   2264.8
rsa 2048 bits 0.032928s 0.001269s     30.4    788.0
rsa 4096 bits 0.224667s 0.004481s      4.5    223.1
..

Martin


Home | Main Index | Thread Index | Old Index