LWN.net Logo

Advertisement

Front, Kernel, Security, Distributions, Development. See your byline here on LWN.net.

Advertise here

run OpenSSL speed benchmark

run OpenSSL speed benchmark

Posted Feb 14, 2008 7:48 UTC (Thu) by vgough (guest, #2781)
In reply to: if CPU time is the bottleneck ... by yarikoptic
Parent article: Multi-threaded OpenSSH

OpenSSH uses OpenSSL, which has a useful speed test built-in ("openssl speed").  On my Dual
core AMD, the Blowfish speed slots somewhere between AES 192 bit and AES 256 bit, at around
60MB/sec.  The fastest I've seen is my slower VIA C7 system, which can do AES-256-CBC at
nearly 800MB/sec due to hardware acceleration:

$ openssl speed -engine padlock -evp aes-256-cbc
engine "padlock" set.
...
The 'numbers' are in 1000s of bytes per second processed.
type          16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-256-cbc   70048.90k   221410.79k   482132.99k   683641.51k   780377.04k


(Log in to post comments)

run OpenSSL speed benchmark

Posted Feb 23, 2008 15:39 UTC (Sat) by anton (guest, #25547) [Link]

Whether blowfish is faster than AES depends on the actual CPU; below you find results from 6 different CPUs (measured with "openssl speed"). It seems that Blowfish is fastest on non-IA32/AMD64 CPUs, and that AES-128 is fastest on IA32/AMD64 CPUs. Maybe AES has been especially tuned on these architectures (maybe using SSE2), or maybe this is just an accident.
The 'numbers' are in 1000s of bytes per second processed.

0.8GHz Alpha 21264b (Alpha):
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
blowfish cbc     19939.33k    22299.37k    23165.70k    23421.27k    23592.96k
aes-128 cbc      22547.19k    23024.03k    23176.11k    23239.00k    23098.79k
aes-192 cbc      20367.55k    20544.24k    20858.45k    20928.17k    20680.42k
aes-256 cbc      18996.84k    19297.97k    19407.28k    19328.00k    19358.54k

1GHz UltraSparc T1 (Sparc32):
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
blowfish cbc     10205.05k    11725.33k    12179.11k    12303.36k    12085.93k
aes-128 cbc       8187.33k     9253.74k     9563.82k     9644.37k     9497.26k
aes-192 cbc       7416.54k     8274.56k     8492.37k     8556.20k     8437.76k
aes-256 cbc       6685.84k     7379.78k     7575.47k     7626.07k     7528.45k

1.066GHz PPC 7447A (iBook G4) (PPC32):
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
blowfish cbc     30950.70k    34226.50k    35157.90k    35383.45k    35492.32k
aes-128 cbc      30461.87k    33709.61k    34417.71k    34576.16k    34621.41k
aes-192 cbc      27779.14k    30453.69k    31023.54k    31173.15k    31175.87k
aes-256 cbc      25526.60k    27756.61k    28241.65k    28456.96k    28372.62k

2.2GHz Athlon 64 X2 4400+ (AMD64):
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
blowfish cbc     79664.65k    85287.04k    86616.41k    86835.88k    87293.95k
aes-128 cbc      91920.92k   100527.77k   103723.18k   104209.52k   104710.14k
aes-192 cbc      85428.13k    89385.83k    91002.79k    91103.00k    91463.68k
aes-256 cbc      76068.87k    78756.57k    80623.02k    81095.68k    81193.64k

2.66GHz Pentium 4 (IA-32):
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
blowfish cbc     75218.71k    77014.90k    79549.78k    80735.91k    79525.42k
aes-128 cbc      46028.82k    86340.70k   108086.73k   117469.64k   120570.07k
aes-192 cbc      42808.40k    74267.47k    92402.86k    98323.46k   100554.07k
aes-256 cbc      40274.84k    67507.63k    82040.83k    85691.45k    88408.06k

3GHz Xeon 5160 (~Core 2 Duo 6850) (AMD64):
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
blowfish cbc     99011.70k   105660.84k   106929.75k   107735.38k   107562.87k
aes-128 cbc     149960.71k   157818.86k   158781.27k   158404.98k   158695.42k
aes-192 cbc     132249.65k   138024.81k   138844.84k   138654.36k   138622.29k
aes-256 cbc     117380.43k   122823.36k   122933.24k   123506.01k   123387.90k

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds