①対応CPUを確認
インテルCPUの場合CPU情報が検索できる ⇒ http://ark.intel.com/
ざっとみた感じだと 第2、第3世代のCore i5, Core i7, Xeonは第2世代から、Core i3は第4世代から対応してる
②OpenSSLでコマンド実行
AES-NI無効
> openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on | 16 size blocks | 14818341 aes-256 cbc's in 3.00s |
Doing aes-256 cbc for 3s on | 64 size blocks | 4047956 aes-256 cbc's in 3.00s |
Doing aes-256 cbc for 3s on | 256 size blocks | 1036641 aes-256 cbc's in 3.00s |
Doing aes-256 cbc for 3s on | 1024 size blocks | 258249 aes-256 cbc's in 2.98s |
Doing aes-256 cbc for 3s on | 8192 size blocks | 32677 aes-256 cbc's in 3.01s |
BlockSize | KBytes/sec |
16 bytes | 79157.30k |
64 bytes | 86494.23k |
256 bytes | 88601.23k |
1024 bytes | 88751.94k |
8192 bytes | 88909.35k |
AES-NI有効
> openssl speed -evp aes-256-cbc
Doing aes-256 cbc for 3s on | 16 size blocks | 74060182 aes-256 cbc's in 3.00s |
Doing aes-256 cbc for 3s on | 64 size blocks | 22091013 aes-256 cbc's in 3.00s |
Doing aes-256 cbc for 3s on | 256 size blocks | 5640111 aes-256 cbc's in 3.00s |
Doing aes-256 cbc for 3s on | 1024 size blocks | 1393281 aes-256 cbc's in 2.98s |
Doing aes-256 cbc for 3s on | 8192 size blocks | 175337 aes-256 cbc's in 3.01s |
BlockSize | KBytes/sec |
16 bytes | 395618.09k |
64 bytes | 472027.17k |
256 bytes | 487131.97k |
1024 bytes | 473864.29k |
8192 bytes | 479551.11k |
だいたい5倍強の性能になってる