OK, I've made some headway on this. First, I'd like to thank all those
who have provided input.

It looks like the issue might not be the lack of an additional optimization
option, but the adverse affect of one of the optimizations included by -O2.
I tried a build with -O1 instead and got much better results:

cfe2.imorgan> apps/openssl speed aes bf rc4 md5 sha1 2>/dev/null
OpenSSL 0.9.8e 23 Feb 2007
built on: Mon Jun 11 12:12:59 PDT 2007
options:bn(64,64) md2(int) rc4(ptr,int) des(idx,cisc,4,long) aes(partial) 
idea(int) blowfish(idx) 
compiler: icc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H 
-DL_ENDIAN -DTERMIO -O1 -Wall -no_cpprt -i-static -DSHA1_ASM -DSHA256_ASM 
-DSHA512_ASM -DAES_ASM
available timing options: TIMES TIMEB HZ=1024 [sysconf value]
timing function used: times
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               8507.03k    27722.30k    75531.10k   132557.28k   169630.22k
sha1              9792.46k    27468.37k    81129.39k   159646.12k   222044.16k
rc4             239281.42k   298509.16k   312526.86k   317020.73k   317904.21k
blowfish cbc     51905.17k    55981.70k    57137.15k    57406.12k    57450.08k
aes-128 cbc      80270.47k    91255.53k    94353.92k    95308.12k    94093.90k
aes-192 cbc      73833.99k    83016.73k    85580.54k    86355.07k    85327.87k
aes-256 cbc      68343.73k    76161.19k    78277.94k    78952.79k    77976.92k

Iain Morgan wrote:
> Hello,
> 
> Using the Intel 9.1 compiler on an IA64 system the performance of
> AES and (to a lesser extent) other algorithms implemented in
> assembly language is less than that using gcc. I've included the
> speed output for several of the algorithms below.
> 
> Is this a know issue and is there a workaround other than switching
> to gcc?
> 
> Thanks
> 
> -- 
> Iain Morgan
> 
> cfe2.imorgan> apps/openssl speed aes bf rc4 md5 sha 2>/dev/null
> OpenSSL 0.9.8e 23 Feb 2007
> built on: Fri Jun  8 10:46:48 PDT 2007
> options:bn(64,64) md2(int) rc4(ptr,int) des(idx,cisc,4,long) aes(partial) 
> idea(int) blowfish(idx) 
> compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H 
> -DL_ENDIAN -DTERMIO -O3 -Wall -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM
> available timing options: TIMES TIMEB HZ=1024 [sysconf value]
> timing function used: times
> The 'numbers' are in 1000s of bytes per second processed.
> type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
> md5               8388.37k    27899.28k    73067.45k   123142.98k   153932.33k
> sha1             10270.44k    33538.23k    93979.13k   171431.58k   224889.51k
> rc4             248141.11k   299502.68k   312819.11k   316454.57k   317876.62k
> blowfish cbc     52879.87k    56659.39k    57974.95k    58306.56k    58335.11k
> aes-128 cbc      56603.67k    78418.22k    86639.62k    89007.75k    88984.23k
> aes-192 cbc      53353.86k    72285.93k    79266.68k    81229.82k    81267.37k
> aes-256 cbc      50445.43k    67040.72k    72999.08k    74656.43k    74604.54k
> sha256           10808.77k    29896.92k    62069.85k    84877.31k    95065.43k
> sha512            7113.80k    28534.17k    72103.59k   134958.08k   181021.35k
> 
> cfe2.imorgan> $NOBACKUP/build/bin/openssl speed aes bf rc4 md5 sha 2>/dev/nul 
> >
> OpenSSL 0.9.8e 23 Feb 2007
> built on: Fri Jun  8 09:27:49 PDT 2007
> options:bn(64,64) md2(int) rc4(ptr,int) des(idx,cisc,4,long) aes(partial) 
> idea(int) blowfish(idx) 
> compiler: icc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H 
> -DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt -i-static -DSHA1_ASM -DSHA256_ASM 
> -DSHA512_ASM -DAES_ASM
> available timing options: TIMES TIMEB HZ=1024 [sysconf value]
> timing function used: times
> The 'numbers' are in 1000s of bytes per second processed.
> type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
> md5               5835.63k    20437.19k    60845.48k   119983.98k   166928.38k
> sha1              6356.02k    19805.21k    63273.44k   140241.24k   216834.46k
> rc4             247902.49k   299131.32k   314115.67k   317933.50k   318111.74k
> blowfish cbc     50625.69k    59182.33k    61785.80k    62476.09k    62615.65k
> aes-128 cbc      47999.54k    51204.48k    52011.06k    52207.27k    51920.38k
> aes-192 cbc      45619.43k    48507.73k    49234.01k    49402.50k    49119.23k
> aes-256 cbc      43471.76k    46080.66k    46732.78k    46890.42k    46632.80k
> sha256            6729.22k    21080.31k    50995.71k    79001.82k    94085.12k
> sha512            4036.13k    16274.26k    48357.42k   109740.71k   174342.74k
> 
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       openssl-dev@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]

-- 
Iain Morgan
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to