Spuštění benchmarku pro měření výkonu jednoho CPU jádra:
Kód: Vybrat vše
openssl speed sha1
Příklad výstupu (iMac 2011, i5-2400 CPU, 3.10GHz):
Kód: Vybrat vše
To get the most accurate results, try to run this
program when this computer is idle.
Doing sha1 for 3s on 16 size blocks: 7802814 sha1's in 2.99s
Doing sha1 for 3s on 64 size blocks: 5401279 sha1's in 2.98s
Doing sha1 for 3s on 256 size blocks: 2710308 sha1's in 2.92s
Doing sha1 for 3s on 1024 size blocks: 969270 sha1's in 2.99s
Doing sha1 for 3s on 8192 size blocks: 136888 sha1's in 3.00s
OpenSSL 0.9.8zh 14 Jan 2016
built on: Oct 5 2016
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(idx)
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
sha1 41821.06k 115884.39k 237926.65k 332397.12k 374275.82k
Jako referenční číslo se vesměs bere počet 1024 bytes hash/sec, viz přdposlední hodnota na posledním řádku:
Měřit můžeme také agregovaný výkon u multiprocesorových systémů, počet procesů lze definovat přepínačem "-multi":
Kód: Vybrat vše
openssl speed -multi 4 sha1