LINUX.ORG.RU
ФорумTalks

[Писькомерятельство] openssl benchmark


0

2

Кастую для вывод openssl speed aes-256-cbc и openssl speed aes-128-cbc без использования (-multi) для разных камней. Если есть аппаратная акселерация или hifn чип, то в студию. Ищется дешёвое и энергоэффективное решение для vpn.

☆☆☆☆☆

Пока как вариант amd geode, но он только 128 держит аппаратно:

$ openssl speed -evp aes-128-cbc -engine cryptodev
OpenSSL 0.9.8e 23 Feb 2007
built on: Fri May  1 06:08:53 UTC 2009
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx) 
compiler: cc
available timing options: USE_TOD HZ=128 [sysconf value]
timing function used: getrusage
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128-cbc      16938.61k    93274.51k   382928.40k  4130608.07k  2681168.85k
timur_dav ☆☆☆☆☆
() автор топика
Ответ на: комментарий от timur_dav

Слегка нагруженный Athlon x2 4400
r 3s on 16 size blocks: 8712296 aes-256 cbc's in 2.97s
Doing aes-256 cbc for 3s on 64 size blocks: 2348487 aes-256 cbc's in 2.98s
Doing aes-256 cbc for 3s on 256 size blocks: 602093 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 365030 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 46131 aes-256 cbc's in 3.00s
OpenSSL 1.0.0d-fips 8 Feb 2011
built on: Thu Feb 10 15:01:27 UTC 2011
options:bn(64,64) md2(int) rc4(8x,int) des(idx,cisc,16,int) aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -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-256 cbc 46934.93k 50437.30k 51378.60k 124596.91k 125968.38k

openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 12156044 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 64 size blocks: 3265496 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 256 size blocks: 835660 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 484351 aes-128 cbc's in 2.98s
Doing aes-128 cbc for 3s on 8192 size blocks: 61926 aes-128 cbc's in 3.00s
OpenSSL 1.0.0d-fips 8 Feb 2011
built on: Thu Feb 10 15:01:27 UTC 2011
options:bn(64,64) md2(int) rc4(8x,int) des(idx,cisc,16,int) aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -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 65049.06k 69663.91k 71309.65k 166434.71k 169099.26k


E8400
openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 12144777 aes-256 cbc's in 2.99s
Doing aes-256 cbc for 3s on 64 size blocks: 3242942 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 826489 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 440578 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 55702 aes-256 cbc's in 2.99s
OpenSSL 1.0.0d-fips 8 Feb 2011
built on: Thu Feb 10 15:01:27 UTC 2011
options:bn(64,64) md2(int) rc4(1x,char) des(idx,cisc,16,int) aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -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-256 cbc 64988.77k 69182.76k 70527.06k 150383.96k 152612.30k

openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 16490208 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 64 size blocks: 4473315 aes-128 cbc's in 2.97s
Doing aes-128 cbc for 3s on 256 size blocks: 1153773 aes-128 cbc's in 2.98s
Doing aes-128 cbc for 3s on 1024 size blocks: 606524 aes-128 cbc's in 2.97s
Doing aes-128 cbc for 3s on 8192 size blocks: 76896 aes-128 cbc's in 2.99s
OpenSSL 1.0.0d-fips 8 Feb 2011
built on: Thu Feb 10 15:01:27 UTC 2011
options:bn(64,64) md2(int) rc4(1x,char) des(idx,cisc,16,int) aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -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 88241.92k 96394.67k 99116.07k 209118.04k 210679.61k

ZaeLam3l
()

Intel(R) Xeon(R) CPU E5410 @ 2.33GHz

openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 8531486 aes-256 cbc's in 3.01s
Doing aes-256 cbc for 3s on 64 size blocks: 2234479 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 565208 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 141671 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 17715 aes-256 cbc's in 3.00s
OpenSSL 0.9.7g 11 Apr 2005
built on: Wed Oct 3 14:59:13 UTC 2007
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DOPENSSL_NO_RC5 -DOPENSSL_NO_IDEA -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fomit-frame-pointer -fno-strict-aliasing -DTERMIO -Wall -fbranch-probabilities -DSHA1_ASM -DMD5_ASM -DRMD160_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-256 cbc 45350.09k 47668.89k 48231.08k 48357.03k 48373.76k


openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 11033170 aes-128 cbc's in 3.01s
Doing aes-128 cbc for 3s on 64 size blocks: 2879536 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 256 size blocks: 727984 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 182390 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 8192 size blocks: 22817 aes-128 cbc's in 3.00s
OpenSSL 0.9.7g 11 Apr 2005
built on: Wed Oct 3 14:59:13 UTC 2007
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DOPENSSL_NO_RC5 -DOPENSSL_NO_IDEA -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fomit-frame-pointer -fno-strict-aliasing -DTERMIO -Wall -fbranch-probabilities -DSHA1_ASM -DMD5_ASM -DRMD160_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 58648.08k 61430.10k 62121.30k 62255.79k 62305.62k

ZaeLam3l
()
Ответ на: комментарий от ZaeLam3l

Intel(R) Pentium(R) D CPU 3.00GHz

openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 8786577 aes-256 cbc's in 3.02s
Doing aes-256 cbc for 3s on 64 size blocks: 2231717 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 569294 aes-256 cbc's in 2.99s
Doing aes-256 cbc for 3s on 1024 size blocks: 142766 aes-256 cbc's in 2.98s
Doing aes-256 cbc for 3s on 8192 size blocks: 17717 aes-256 cbc's in 2.97s
OpenSSL 0.9.7g 11 Apr 2005
built on: Fri Oct 13 16:23:20 UTC 2006
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DOPENSSL_NO_RC5 -DOPENSSL_NO_IDEA -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fomit-frame-pointer -fno-strict-aliasing -DTERMIO -Wall -fbranch-probabilities -DSHA1_ASM -DMD5_ASM -DRMD160_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-256 cbc 46551.40k 47609.96k 48742.23k 49057.85k 48867.90k


openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 11165012 aes-128 cbc's in 2.96s
Doing aes-128 cbc for 3s on 64 size blocks: 2901039 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 256 size blocks: 726004 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 1024 size blocks: 185431 aes-128 cbc's in 2.98s
Doing aes-128 cbc for 3s on 8192 size blocks: 23340 aes-128 cbc's in 3.01s
OpenSSL 0.9.7g 11 Apr 2005
built on: Fri Oct 13 16:23:20 UTC 2006
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DOPENSSL_NO_RC5 -DOPENSSL_NO_IDEA -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fomit-frame-pointer -fno-strict-aliasing -DTERMIO -Wall -fbranch-probabilities -DSHA1_ASM -DMD5_ASM -DRMD160_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 60351.42k 62095.82k 62159.54k 63718.57k 63522.02k

ZaeLam3l
()
Ответ на: комментарий от ZaeLam3l

Спасибо, но машинки явно не энергоэффективного ряда :)

timur_dav ☆☆☆☆☆
() автор топика

11:03 ygor /home/ygor $ openssl speed aes-256-cbc
To get the most accurate results, try to run this
program when this computer is idle.
Doing aes-256 cbc for 3s on 16 size blocks: 5533402 aes-256 cbc's in 2.71s
Doing aes-256 cbc for 3s on 64 size blocks: 1577322 aes-256 cbc's in 2.84s
Doing aes-256 cbc for 3s on 256 size blocks: 404216 aes-256 cbc's in 2.84s
Doing aes-256 cbc for 3s on 1024 size blocks: 101319 aes-256 cbc's in 2.84s
Doing aes-256 cbc for 3s on 8192 size blocks: 12704 aes-256 cbc's in 2.84s
OpenSSL 0.9.8n 24 Mar 2010
built on: date not available
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: cc
available timing options: USE_TOD HZ=128 [sysconf value]
timing function used: getrusage
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256 cbc 32646.38k 35597.68k 36421.96k 36596.13k 36626.54k


11:05 ygor /home/ygor $ dmesg L
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.1-STABLE #1: Sun Aug 1 23:13:20 MSD 2010
root@myhouse:/usr/obj/usr/src/sys/MYKERNEL i386
Timecounter «i8254» frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(R) CPU 2.40GHz (2405.47-MHz 686-class CPU)
Origin = «GenuineIntel» Id = 0xf29 Family = f Model = 2 Stepping = 9
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x4400<CNXT-ID,xTPR>
real memory = 1342177280 (1280 MB)
avail memory = 1292582912 (1232 MB)

Ygor ★★★★★
()

Celeron 2.0:

$ openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 7038939 aes-256 cbc's in 2.70s
Doing aes-256 cbc for 3s on 64 size blocks: 2147318 aes-256 cbc's in 2.62s
Doing aes-256 cbc for 3s on 256 size blocks: 360695 aes-256 cbc's in 1.54s
Doing aes-256 cbc for 3s on 1024 size blocks: 92166 aes-256 cbc's in 1.47s
Doing aes-256 cbc for 3s on 8192 size blocks: 11751 aes-256 cbc's in 1.67s
OpenSSL 0.9.8o 01 Jun 2010
built on: Sun Jun  6 19:06:05 UTC 2010
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx) 
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -march=i686 -Wa,--noexecstack -g -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_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-256 cbc      41712.23k    52453.57k    59959.69k    64202.71k    57643.23k

$ openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 3025444 aes-128 cbc's in 1.50s
Doing aes-128 cbc for 3s on 64 size blocks: 1466227 aes-128 cbc's in 1.52s
Doing aes-128 cbc for 3s on 256 size blocks: 450781 aes-128 cbc's in 1.43s
Doing aes-128 cbc for 3s on 1024 size blocks: 123688 aes-128 cbc's in 1.44s
Doing aes-128 cbc for 3s on 8192 size blocks: 15085 aes-128 cbc's in 1.45s
OpenSSL 0.9.8o 01 Jun 2010
built on: Sun Jun  6 19:06:05 UTC 2010
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx) 
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -march=i686 -Wa,--noexecstack -g -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_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      32271.40k    61735.87k    80699.26k    87955.91k    85225.05k

Igron ★★★★★
()

Intel(R) Atom(TM) CPU D525 @ 1.80GHz

The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-128-cbc 18261.88k 25812.46k 28880.30k 29806.93k 30097.41k

ates
()

Intel Core i7 620 M:

$ openssl speed aes-256-cbc
To get the most accurate results, try to run this
program when this computer is idle.
Doing aes-256 cbc for 3s on 16 size blocks: 24348157 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 64 size blocks: 6328409 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 1597554 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 400594 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 50117 aes-256 cbc's in 3.00s
OpenSSL 0.9.8l 5 Nov 2009
built on: Jul 29 2010
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2) 
compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int -DOPENSSL_NO_IDEA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6
available timing options: TIMEB USE_TOD HZ=100 [sysconf value]
timing function used: getrusage
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-256 cbc     129863.63k   135010.24k   136328.65k   136739.82k   136856.43k
$ openssl speed aes-128-cbc
To get the most accurate results, try to run this
program when this computer is idle.
Doing aes-128 cbc for 3s on 16 size blocks: 30575925 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 64 size blocks: 8075753 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 256 size blocks: 2047554 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 513697 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 8192 size blocks: 64226 aes-128 cbc's in 3.00s
OpenSSL 0.9.8l 5 Nov 2009
built on: Jul 29 2010
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2) 
compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int -DOPENSSL_NO_IDEA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6
available timing options: TIMEB USE_TOD HZ=100 [sysconf value]
timing function used: getrusage
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128 cbc     163079.75k   172287.96k   174729.91k   175346.99k   175386.05k
Relan ★★★★★
()

OpenSSL 1.0.0d @ Gentoo x86

Core2 E8400 3.00 Ghz:
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256 cbc 64340.25k 69440.13k 71235.21k 117712.55k 119706.97k
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-128 cbc 82967.64k 93824.53k 97457.49k 162382.51k 165316.21k

Celeron m390 1.7 Ghz:
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256 cbc 28341.23k 30847.75k 31804.67k 57122.99k 57508.51k
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-128 cbc 38864.10k 43211.61k 44464.91k 76506.82k 78367.90k

Atom 330 (270):
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256 cbc 10116.18k 10503.96k 10662.75k 10666.90k 10641.15k
aes-128 cbc 13976.96k 14829.12k 15133.02k 15219.24k 15238.76k

вот такая вот бяка.. этот атом

Sylvia ★★★★★
()

>openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 7065988 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 64 size blocks: 1936854 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 496751 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 208817 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 26276 aes-256 cbc's in 3.00s
OpenSSL 1.0.0c 2 Dec 2010
built on: Thu Dec 30 09:09:10 MSK 2010
options:bn(64,32) rc4(4x,int) des(ptr,risc1,16,long) aes(partial) idea(int) blowfish(idx) 
compiler: i686-pc-linux-gnu-gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -pipe -O2 -march=native -mtune=native -mmmx -msse3 -mssse3 -mfpmath=sse+387 -fomit-frame-pointer -mstackrealign -ftree-vectorize -funroll-loops -fno-strict-aliasing -Wa,--noexecstack
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-256 cbc      37685.27k    41319.55k    42389.42k    71276.20k    71751.00k


>openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 9698750 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 64 size blocks: 2679753 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 256 size blocks: 692776 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 278545 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 8192 size blocks: 35998 aes-128 cbc's in 3.00s
OpenSSL 1.0.0c 2 Dec 2010
built on: Thu Dec 30 09:09:10 MSK 2010
options:bn(64,32) rc4(4x,int) des(ptr,risc1,16,long) aes(partial) idea(int) blowfish(idx) 
compiler: i686-pc-linux-gnu-gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -pipe -O2 -march=native -mtune=native -mmmx -msse3 -mssse3 -mfpmath=sse+387 -fomit-frame-pointer -mstackrealign -ftree-vectorize -funroll-loops -fno-strict-aliasing -Wa,--noexecstack
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128 cbc      51899.67k    57168.06k    59116.89k    95076.69k    98298.54k


>cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 22
model name      : Intel(R) Celeron(R) CPU          430  @ 1.80GHz
stepping        : 1
cpu MHz         : 1799.928
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm lahf_lm dts
bogomips        : 3601.85
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


madcore ★★★★★
()
Ответ на: комментарий от madcore

>openssl speed aes-256-cbc
The 'numbers' are in 1000s of bytes per second processed.                                                                                                                           
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes                                                                                                       
aes-256 cbc      15801.12k    16996.28k    17298.41k    30942.61k    31360.44k                 

>openssl speed aes-128-cbc           
The 'numbers' are in 1000s of bytes per second processed.                                                                                                                           
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes                                                                                                       
aes-128 cbc      21312.42k    23717.22k    24350.14k    41839.48k    42866.01k                                     

>cat /proc/cpuinfo 
processor       :0                        
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : Intel(R) Celeron(R) M processor          900MHz
stepping        : 8
cpu MHz         : 900.087
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx bts
bogomips        : 1800.18
clflush size    : 64
cache_alignment : 64
address sizes   : 32 bits physical, 32 bits virtual
power management:



>openssl speed aes-256-cbc
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-256 cbc      57603.06k    62334.64k    63939.64k   105094.40k   106606.93k

>openssl speed aes-128-cbc
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128 cbc      77855.41k    82936.56k    86774.58k   145714.49k   146241.42k

>cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     E6750  @ 2.66GHz
stepping        : 11
cpu MHz         : 2671.364
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts tpr_shadow vnmi flexpriority
bogomips        : 5344.34
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


madcore ★★★★★
()
Ответ на: комментарий от Sylvia

Что-то маловато для атома

Atom 330 (Ubuntu 10.10 64bit):

aes-256 cbc 22961.25k 31090.15k 34291.29k 35185.66k 35463.17k
aes-128 cbc 27947.95k 41381.14k 47454.72k 49256.45k 49815.55k

timur_dav ☆☆☆☆☆
() автор топика
Ответ на: комментарий от ZaeLam3l

>E8400

aes-256 cbc 64988.77k 69182.76k 70527.06k 150383.96k 152612.30k

aes-128 cbc 88241.92k 96394.67k 99116.07k 209118.04k 210679.61k



А вот и наглядное преимущество 64бит

madcore ★★★★★
()
Ответ на: комментарий от timur_dav

>(Ubuntu 10.10 64bit)

32-bit, cколько уж есть, полный вывод -

$ openssl speed aes-256-cbc ; openssl speed aes-128-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 1886005 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 64 size blocks: 494086 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 125196 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 31473 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 3934 aes-256 cbc's in 3.00s
OpenSSL 1.0.0d 8 Feb 2011
built on: Wed Feb 9 09:03:15 MSK 2011
options:bn(64,32) rc4(4x,int) des(ptr,risc1,16,long) aes(partial) idea(int) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -O2 -march=core2 -mtune=atom -fomit-frame-pointer -mfpmath=sse -msse3 -mssse3 -mmmx -m32 -pipe -fno-strict-aliasing -Wa,--noexecstack
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256 cbc 10058.69k 10540.50k 10683.39k 10742.78k 10742.44k
Doing aes-128 cbc for 3s on 16 size blocks: 2579798 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 64 size blocks: 692993 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 256 size blocks: 177252 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 1024 size blocks: 44578 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 8192 size blocks: 5581 aes-128 cbc's in 2.99s
OpenSSL 1.0.0d 8 Feb 2011
built on: Wed Feb 9 09:03:15 MSK 2011
options:bn(64,32) rc4(4x,int) des(ptr,risc1,16,long) aes(partial) idea(int) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -O2 -march=core2 -mtune=atom -fomit-frame-pointer -mfpmath=sse -msse3 -mssse3 -mmmx -m32 -pipe -fno-strict-aliasing -Wa,--noexecstack
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-128 cbc 13804.94k 14833.29k 15176.09k 15266.85k 15290.82k

Sylvia ★★★★★
()

AMD Athlon(tm) II X2 245 Processor

$ openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 27658072 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 64 size blocks: 9587597 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 256 size blocks: 2708361 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 699468 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 8192 size blocks: 88294 aes-128 cbc's in 3.00s
OpenSSL 0.9.8o 01 Jun 2010
built on: Thu Feb 10 19:15:33 UTC 2011
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2) 
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -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     147509.72k   204535.40k   231113.47k   238751.74k   241101.48k

$ openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 19093327 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 64 size blocks: 6769364 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 1903661 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 491185 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 61960 aes-256 cbc's in 3.00s
OpenSSL 0.9.8o 01 Jun 2010
built on: Thu Feb 10 19:15:33 UTC 2011
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2) 
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -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-256 cbc     101831.08k   144413.10k   162445.74k   167657.81k   169192.11k
delusion
()
Ответ на: комментарий от madcore

Дадад, в 64бит ssl явно шустрее


Не думал, что такое разительное будет.

aes-256 cbc 4248.70k 4357.27k 4416.54k 4417.19k 4434.27k
aes-128 cbc 5349.05k 5606.22k 5679.95k 5702.64k 5719.53k

CPU: Geode(TM) Integrated Processor by AMD PCS (498.05-MHz 586-class CPU)
Origin = «AuthenticAMD» Id = 0x5a2 Stepping = 2
Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>

timur_dav ☆☆☆☆☆
() автор топика

>openssl speed aes-256-cbc
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-256 cbc       2545.72k     2658.70k     2677.93k     2683.56k     2678.78k

>openssl speed aes-128-cbc
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128 cbc       3260.06k     3429.91k     3472.38k     3511.84k     3481.60k

>cat /proc/cpuinfo 
system type             : Broadcom BCM4704 chip rev 9 pkg 0
processor               : 0
cpu model               : BCM3302 V0.6
BogoMIPS                : 263.78
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : no
hardware watchpoint     : no
ASEs implemented        :
VCED exceptions         : not available
VCEI exceptions         : not available
unaligned_instructions  : 961
dcache hits             : 0
dcache misses           : 0
icache hits             : 0
icache misses           : 0
instructions            : 0

madcore ★★★★★
()
Ответ на: комментарий от timur_dav

атом вообще слабоват на шифровании,
когда там была слака (32 бит) , он не мог 100 мбит канал заполнить в sshfs, выдавал где-то поток 80 мбит на полной загрузке процессора,

пересборка с SSE2 asm (OpenSSL) + -march=atom вообщем-то решило проблему с заполнением 100Мбит полностью, при 70-80% нагрузки на одно ядро. ( Да , я использую эту железку как NAS, c доступом sshfs )

Sylvia ★★★★★
()
Ответ на: комментарий от timur_dav

не обязательно D-link, Broadcom чипы 260 Mhz- самая распространенная железяка на роутерах-мыльницах )

уменя примерно такой же в ADSL модеме, только туда не поставить ничего кроме официальной прошивки, памяти мало :)

Sylvia ★★★★★
()
Ответ на: комментарий от timur_dav

>openssl speed aes-256-cbc
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-256 cbc       4594.38k     5320.08k     5574.89k     5638.92k     5638.19k

>openssl speed -evp aes-128-cbc                  
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128-cbc       4461.04k     6512.88k     7366.57k     7586.82k     7707.68k

>cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 5
model           : 10
model name      : Geode(TM) Integrated Processor by AMD PCS
stepping        : 2
cpu MHz         : 498.063
cache size      : 128 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu de pse tsc msr cx8 sep pge cmov clflush mmx mmxext 3dnowext 3dnow up
bogomips        : 996.12
clflush size    : 32

madcore ★★★★★
()
Ответ на: комментарий от madcore

Знаю, под линуксом он быстрее, но олдовая freebsd меня устраивает на роутере вполне.

timur_dav ☆☆☆☆☆
() автор топика

>openssl speed aes-256-cbc
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-256 cbc      16140.01k    17475.54k    17903.10k    18013.18k    18041.51k

>openssl speed aes-128-cbc
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128 cbc      20830.34k    23074.37k    23835.31k    24025.09k    24079.02k

>cat /proc/cpuinfo 
processor       : 0
cpu             : 7455, altivec supported
clock           : 867.000000MHz
revision        : 3.3 (pvr 8001 0303)
bogomips        : 108.71
timebase        : 33280357
platform        : PowerMac
model           : PowerBook6,1
machine         : PowerBook6,1
motherboard     : PowerBook6,1 MacRISC3 Power Macintosh
detected as     : 287 (PowerBook G4 12")
pmac flags      : 0000001a
L2 cache        : 256K unified
pmac-generation : NewWorld
Memory          : 1152 MB

madcore ★★★★★
()
openssl speed aes-256-cbc
type             16 bytes     64 bytes    256 bytes   1024 bytes   2048 bytes
aes-256 cbc       3629.46k     3616.84k     3674.58k     4048.77k     3682.99k

openssl speed aes-128-cbc
type             16 bytes     64 bytes    256 bytes   1024 bytes   2048 bytes
aes-128 cbc       4322.23k     4736.58k     4829.12k     4843.86k     4823.35k

cat /proc/cpuinfo
system type             : Atheros AR9132 rev 2 (0xb9)
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 266.24
CPUClock                : 400
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
ASEs implemented        : mips16
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available
inoremap ★★
()

SUN SPARCclassic

sparc:~# openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 47753 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 64 size blocks: 12673 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 3281 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 829 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 105 aes-256 cbc's in 3.02s
OpenSSL 0.9.8c 05 Sep 2006
built on: Sat Sep 12 16:25:36 UTC 2009
options:bn(64,32) md2(int) rc4(ptr,char) des(idx,cisc,16,long) aes(partial) blowfish(ptr) 
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DB_ENDIAN -DTERMIO -O3 -g -Wall
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-256 cbc        254.68k      270.36k      279.98k      282.97k      284.82k
sparc:~# openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 61014 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 64 size blocks: 16652 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 256 size blocks: 4366 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 1104 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 8192 size blocks: 139 aes-128 cbc's in 3.01s
OpenSSL 0.9.8c 05 Sep 2006
built on: Sat Sep 12 16:25:36 UTC 2009
options:bn(64,32) md2(int) rc4(ptr,char) des(idx,cisc,16,long) aes(partial) blowfish(ptr) 
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DB_ENDIAN -DTERMIO -O3 -g -Wall
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        325.41k      355.24k      372.57k      376.83k      378.30k
sparc:~# cat /proc/cpuinfo 
cpu             : Texas Instruments, Inc. - MicroSparc
fpu             : TI MicroSparc on chip FPU
promlib         : Version 3 Revision 2
prom            : 2.9
type            : sun4m
ncpus probed    : 1
ncpus active    : 1
CPU0Bogo        : 49.76
CPU0ClkTck      : 0
MMU type        : TI Tsunami
contexts        : 64
nocache total   : 2252800
nocache used    : 351232
sparc:~# 

mad_soft
()

AMD Phenom II X6 1100T, тоже слегка нагруженный:

# openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 24943301 aes-256 cbc's in 2.98s
Doing aes-256 cbc for 3s on 64 size blocks: 8673229 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 2435972 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 628535 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 79251 aes-256 cbc's in 3.00s
OpenSSL 0.9.8k 25 Mar 2009
built on: Thu Feb 10 01:45:33 UTC 2011
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2) 
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -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-256 cbc     133923.76k   185028.89k   207869.61k   214539.95k   216408.06k
# openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 29370556 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 64 size blocks: 11314536 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 256 size blocks: 3384681 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 890050 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 8192 size blocks: 112942 aes-128 cbc's in 3.00s
OpenSSL 0.9.8k 25 Mar 2009
built on: Thu Feb 10 01:45:33 UTC 2011
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2) 
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -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     157166.85k   241376.77k   288826.11k   303803.73k   308406.95k

Deleted
()
Ответ на: комментарий от Deleted

Забыл сказать, системы: Ubuntu 10.04 amd64. На время теста сделал

echo performance >/sys/devices/system/cpu/cpuN/cpufreq/scaling_governor

Deleted
()

Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz

denis@laptop:~$ openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 15337813 aes-256 cbc's in 2.93s
Doing aes-256 cbc for 3s on 64 size blocks: 4925427 aes-256 cbc's in 2.95s
Doing aes-256 cbc for 3s on 256 size blocks: 1333899 aes-256 cbc's in 2.98s
Doing aes-256 cbc for 3s on 1024 size blocks: 338544 aes-256 cbc's in 2.99s
Doing aes-256 cbc for 3s on 8192 size blocks: 42788 aes-256 cbc's in 3.00s
OpenSSL 0.9.8o 01 Jun 2010
built on: Thu Feb 10 01:47:31 UTC 2011
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2)
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -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-256 cbc 83755.98k 106856.72k 114589.98k 115942.83k 116839.77k


denis@laptop:~$ openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 15368688 aes-128 cbc's in 2.95s
Doing aes-128 cbc for 3s on 64 size blocks: 5981107 aes-128 cbc's in 2.94s
Doing aes-128 cbc for 3s on 256 size blocks: 1784800 aes-128 cbc's in 2.94s
Doing aes-128 cbc for 3s on 1024 size blocks: 468939 aes-128 cbc's in 2.98s
Doing aes-128 cbc for 3s on 8192 size blocks: 59145 aes-128 cbc's in 2.97s
OpenSSL 0.9.8o 01 Jun 2010
built on: Thu Feb 10 01:47:31 UTC 2011
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2)
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -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 83355.60k 130200.97k 155411.16k 161138.77k 163136.65k

isden ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.