Greetings, I'm not sure if this topic has been brought up previously, but I've noticed that the AES performance with the linux-x86_64 target seems to have dropped relative to 0.9.8k. This is on an AMD Athlon64 X2 with GCC 4.1.2.
I'm curious as to the cause of this and whether it is intentional (to mitigate a timing attack, perhaps) or whether it is an accidental side-effect. Strangely, the AES performance is actaully _better_ with the no-asm flag, although not as good as 0.9.8k. $ apps/openssl speed aes 2>/dev/null OpenSSL 1.0.0-beta2 21 Apr 2009 built on: Mon May 4 11:30:22 PDT 2009 options:bn(64,64) md2(int) rc4(8x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(ptr2) compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASM The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-128 cbc 62629.24k 66329.47k 67789.31k 68298.75k 68444.16k aes-192 cbc 53112.54k 55611.33k 56815.96k 56963.41k 57103.70k aes-256 cbc 45772.33k 48082.33k 48698.60k 49045.85k 49116.50k $ apps/openssl speed aes 2>/dev/null OpenSSL 0.9.8k 25 Mar 2009 built on: Mon May 4 11:14:36 PDT 2009 options:bn(64,64) md2(int) rc4(8x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(ptr2) compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM available timing options: TIMES TIMEB HZ=100 [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 aes-128 cbc 81646.60k 127745.62k 152414.09k 159444.31k 161783.81k aes-192 cbc 72642.27k 110940.37k 129796.27k 135063.56k 137297.92k aes-256 cbc 67243.52k 99031.17k 113838.59k 118624.75k 119619.58k Thanks -- Iain Morgan ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
