AVX/MULX benchmarks

Zstream

Diamond Member
Oct 24, 2005
3,395
277
136
Hi Everyone,

Does anyone know of any direct AVX benchmarks? I'm looking for AVX and MULX. Basically cryptographic performance.
 

Cogman

Lifer
Sep 19, 2000
10,284
138
106
http://www.agner.org/optimize/instruction_tables.pdf

However, this is not basic cryptography performance. In order for the cryptography to go fast, it needs to use these instructions, which doesn't always (or often) happen in general encryption libraries.

In that case, you pretty much care about add, multiply, and rotation performance.
 

Phynaz

Lifer
Mar 13, 2006
10,140
819
126
Intel gives you the entire test setup, and it's all open source. Why can't you replicate it?

Or just script an openssl test.
 

Zstream

Diamond Member
Oct 24, 2005
3,395
277
136
Intel gives you the entire test setup, and it's all open source. Why can't you replicate it?

Or just script an openssl test.

I want to test without using HAProxy as it can provide better statistical/reference points. Additionally, if someone has already benchmarked all of the cpus already, well more power to me :)
 

Phynaz

Lifer
Mar 13, 2006
10,140
819
126
I'm confused, you're trying to replicate Intel's results without using the same benchmark? But the openssl benchmarks aren't what you want??
 
Last edited:

Zstream

Diamond Member
Oct 24, 2005
3,395
277
136
I'm confused, you're trying to replicate Intel's results without using the same benchmark? But the openssl benchmarks aren't what you want??

What Cogman and you provided is great! I'm just looking for a way to determine if a bulldozer, athlon, haswell etc.. will naturally perform better. I'll be doing some benchmarks, but if there is a way to determine capability without going through a full purchase. These CPU's with different sockets add up fast!
 

TheRyuu

Diamond Member
Dec 3, 2005
5,479
14
81
However, this is not basic cryptography performance. In order for the cryptography to go fast, it needs to use these instructions, which doesn't always (or often) happen in general encryption libraries.

Well provided you're using the latest OpenSSL/LibreSSL/BoringSSL library then you'll probably get them. I believe all of the above do a runtime selection of which version of a function to use. If your processor supports AVX2 then it'll use that version.
 

TheRyuu

Diamond Member
Dec 3, 2005
5,479
14
81
I've been looking at the developer site and it looks like AES can be accelerated by the GPU using OpenCL. I'm not sure about Iris as of yet.

http://developer.amd.com/resources/...articles-whitepapers/bulk-encryption-on-gpus/

Has anyone seen benchmarks for AES acceleration using the GPU basically replacing FPGA boards?

It may be useful but likely only for situations that are highly parallel. So whichever block cipher modes are parallelizable is probably where you may see the biggest gains if it turns out to be beneficial to run these on the GPU in the first place.

Stream ciphers like ChaCha could also probably benefit from GPU acceleration.