openssl speed -evp aes256 -elapsed
와 같은 명령어를 내리면 속도 측정을 시작한다.
/etc/php$ openssl speed -evp aes256 -elapsed
You have chosen to measure elapsed time instead of user CPU time.
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: 1013844 aes-256-cbc's in 3.01s
Doing aes-256-cbc for 3s on 64 size blocks: 292243 aes-256-cbc's in 3.01s
Doing aes-256-cbc for 3s on 256 size blocks: 75929 aes-256-cbc's in 3.01s
Doing aes-256-cbc for 3s on 1024 size blocks: 19145 aes-256-cbc's in 3.01s
Doing aes-256-cbc for 3s on 8192 size blocks: 2400 aes-256-cbc's in 3.01s
OpenSSL 0.9.8g 19 Oct 2007
built on: Sun Aug 2 23:49:27 UTC 2009
options:bn(64,32) md2(int) rc4(ptr,int) des(idx,risc1,4,long) aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall
available timing options: TIMES TIMEB HZ=100 [sysconf value]
timing function used: ftime
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256-cbc 5396.38k 6217.94k 6459.89k 6513.12k 6531.83k
위에 나오는 KB수치가 초당 몇 킬로바이트가 처리되었는지를 나타낸다.
즉 높을수록 더 좋은 것이다.
위의 결과는 LG NAS N1T1에서 수행을 한 결과이고 ARM 1GHz짜리 프로세서를 사용한다.
다른 시스템의 결과를 나열해 보면 다음과 같다.
hw.model=Intel(R) Atom(TM) CPU 230 @ 1.60GHz ("GenuineIntel" 686-class)
aes-128-cbc 19038.03k 22711.28k 25477.35k 26380.26k 26533.04k
aes-256-cbc 12845.55k 17726.87k 18514.90k 18995.34k 19078.13k
hw.model=Intel(R) Pentium(R) M processor 1.80GHz ("GenuineIntel" 686-class)
*throttled to 600MHz*
aes-128-cbc 9899.51k 24677.09k 27413.80k 28302.58k 28499.52k
aes-256-cbc 14628.60k 18896.27k 19306.85k 20853.67k 20903.13k
hw.model=Intel(R) Pentium(R) M processor 1.80GHz ("GenuineIntel" 686-class)
aes-128-cbc 29764.09k 58372.77k 76936.57k 84923.22k 85870.56k
aes-256-cbc 43417.90k 56709.43k 61328.90k 62481.61k 62912.43k
hw.model=Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
aes-128-cbc 91020.19k 99403.47k 101908.04k 102832.04k 102777.22k
aes-256-cbc 72070.90k 76275.03k 77913.78k 78081.53k 80180.70k
hw.model=AMD Opteron(tm) Processor 252
aes-128-cbc 103124.01k 113282.39k 117289.34k 118376.37k 118693.44k
aes-256-cbc 83422.11k 91675.96k 94265.24k 94990.56k 95180.43k
LG NAS N1T1과의 대략적인 속도 비교가 가능하다. 저전력 프로세서인 아톰 프로세서가 최소한 2배는 빠르다는 결론이 나온다.
이외에도 사용 가능한 리눅스 벤치마크 툴로는 다음과 같은 것들이 있다.
sudo apt-get install crafty
crafty
bench
sudo apt-get install john
john -test
No comments:
Post a Comment