From: Martin Willi <martin@strongswan.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org, x86@kernel.org
Subject: Re: [PATCH 00/10] crypto: x86_64 - Add SSE/AVX2 ChaCha20/Poly1305 ciphers
Date: Wed, 08 Jul 2015 22:36:23 +0200 [thread overview]
Message-ID: <1436387783.2879.11.camel@martin> (raw)
In-Reply-To: <20150707221301.GB7655@gondor.apana.org.au>
Herbert,
> Running the speed test with sec=1 makes no sense because it's
> too short. Please use sec=0 and count cycles instead.
I get less constant numbers between different runs when using sec=0,
hence I've used sec=1. Below are the numbers of "average" runs for the
AEAD measuring cycles; I'll use cycles in the individual patch notes in
a v2.
Kind regards
Martin
--
generic:
testing speed of rfc7539esp(chacha20,poly1305) (rfc7539esp(chacha20-generic,poly1305-generic)) encryption
test 0 (288 bit key, 16 byte blocks): 1 operation in 9444 cycles (16 bytes)
test 1 (288 bit key, 64 byte blocks): 1 operation in 10692 cycles (64 bytes)
test 2 (288 bit key, 256 byte blocks): 1 operation in 18299 cycles (256 bytes)
test 3 (288 bit key, 512 byte blocks): 1 operation in 26952 cycles (512 bytes)
test 4 (288 bit key, 1024 byte blocks): 1 operation in 48493 cycles (1024 bytes)
test 5 (288 bit key, 2048 byte blocks): 1 operation in 83766 cycles (2048 bytes)
test 6 (288 bit key, 4096 byte blocks): 1 operation in 150899 cycles (4096 bytes)
test 7 (288 bit key, 8192 byte blocks): 1 operation in 296779 cycles (8192 bytes)
SSE2/SSSE3:
testing speed of rfc7539esp(chacha20,poly1305) (rfc7539esp(chacha20-simd,poly1305-simd)) encryption
test 0 (288 bit key, 16 byte blocks): 1 operation in 9814 cycles (16 bytes)
test 1 (288 bit key, 64 byte blocks): 1 operation in 9998 cycles (64 bytes)
test 2 (288 bit key, 256 byte blocks): 1 operation in 12442 cycles (256 bytes)
test 3 (288 bit key, 512 byte blocks): 1 operation in 20321 cycles (512 bytes)
test 4 (288 bit key, 1024 byte blocks): 1 operation in 21098 cycles (1024 bytes)
test 5 (288 bit key, 2048 byte blocks): 1 operation in 33423 cycles (2048 bytes)
test 6 (288 bit key, 4096 byte blocks): 1 operation in 55183 cycles (4096 bytes)
test 7 (288 bit key, 8192 byte blocks): 1 operation in 102514 cycles (8192 bytes)
AVX2:
testing speed of rfc7539esp(chacha20,poly1305) (rfc7539esp(chacha20-simd,poly1305-simd)) encryption
test 0 (288 bit key, 16 byte blocks): 1 operation in 9883 cycles (16 bytes)
test 1 (288 bit key, 64 byte blocks): 1 operation in 10891 cycles (64 bytes)
test 2 (288 bit key, 256 byte blocks): 1 operation in 12467 cycles (256 bytes)
test 3 (288 bit key, 512 byte blocks): 1 operation in 13538 cycles (512 bytes)
test 4 (288 bit key, 1024 byte blocks): 1 operation in 16783 cycles (1024 bytes)
test 5 (288 bit key, 2048 byte blocks): 1 operation in 23161 cycles (2048 bytes)
test 6 (288 bit key, 4096 byte blocks): 1 operation in 37359 cycles (4096 bytes)
test 7 (288 bit key, 8192 byte blocks): 1 operation in 64670 cycles (8192 bytes)
next prev parent reply other threads:[~2015-07-08 20:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-07 19:36 [PATCH 00/10] crypto: x86_64 - Add SSE/AVX2 ChaCha20/Poly1305 ciphers Martin Willi
2015-07-07 19:36 ` [PATCH 01/10] crypto: tcrypt - Add ChaCha20/Poly1305 speed tests Martin Willi
2015-07-07 19:36 ` [PATCH 02/10] crypto: chacha20 - Export common ChaCha20 helpers Martin Willi
2015-07-07 19:36 ` [PATCH 03/10] crypto: chacha20 - Add a SSSE3 SIMD variant for x86_64 Martin Willi
2015-07-07 19:36 ` [PATCH 04/10] crypto: chacha20 - Add a four block SSSE3 " Martin Willi
2015-07-07 19:36 ` [PATCH 05/10] crypto: chacha20 - Add an eight block AVX2 " Martin Willi
2015-07-07 19:36 ` [PATCH 06/10] crypto: testmgr - Add a longer ChaCha20 test vector Martin Willi
2015-07-07 19:36 ` [PATCH 07/10] crypto: poly1305 - Export common Poly1305 helpers Martin Willi
2015-07-07 19:36 ` [PATCH 08/10] crypto: poly1305 - Add a SSE2 SIMD variant for x86_64 Martin Willi
2015-07-07 19:36 ` [PATCH 09/10] crypto: poly1305 - Add a two block SSE2 " Martin Willi
2015-07-07 19:36 ` [PATCH 10/10] crypto: poly1305 - Add a four block AVX2 " Martin Willi
2015-07-07 22:13 ` [PATCH 00/10] crypto: x86_64 - Add SSE/AVX2 ChaCha20/Poly1305 ciphers Herbert Xu
2015-07-08 20:36 ` Martin Willi [this message]
2015-07-08 20:41 ` Herbert Xu
2015-07-11 8:15 ` Martin Willi
2015-07-13 7:01 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1436387783.2879.11.camel@martin \
--to=martin@strongswan.org \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox