Date: Thu, 15 Dec 2016 02:19:08 +0100 From: "Jason A. Donenfeld" <Jason@...c4.com> To: kernel-hardening@...ts.openwall.com, "Theodore Ts'o" <tytso@....edu>, "Jason A. Donenfeld" <Jason@...c4.com>, Netdev <netdev@...r.kernel.org>, David Miller <davem@...emloft.net>, Linus Torvalds <torvalds@...ux-foundation.org>, LKML <linux-kernel@...r.kernel.org>, George Spelvin <linux@...izon.com>, Scott Bauer <sbauer@....utah.edu>, Andi Kleen <ak@...ux.intel.com>, Andy Lutomirski <luto@...capital.net>, Greg KH <gregkh@...uxfoundation.org>, Eric Biggers <ebiggers3@...il.com>, Linux Crypto Mailing List <linux-crypto@...r.kernel.org>, Jean-Philippe Aumasson <jeanphilippe.aumasson@...il.com> Subject: Re: Re: [PATCH 4/3] random: use siphash24 instead of md5 for get_random_int/long Hey Ted, On Wed, Dec 14, 2016 at 8:12 PM, Jason A. Donenfeld <Jason@...c4.com> wrote: > I think this opens up a big window for optimizing it even > further. I optimized it a bit further and siphash is now the clear winner over chacha: [ 1.784801] random benchmark!! [ 1.785161] get_random_long # cycles: 415983 [ 1.785595] get_random_long_chacha # cycles: 242047 [ 1.785997] get_random_long_siphash # cycles: 137130 [ 1.787450] get_random_bytes # cycles: 1452985 [ 1.787947] get_random_int # cycles: 343323 [ 1.788282] get_random_int_chacha # cycles: 170767 [ 1.788656] get_random_int_siphash # cycles: 86384 [ 1.789764] get_random_bytes # cycles: 2279519 And even still, there is more that could be optimized. Therefore, I'll continue to keep this patch in the series and will CC you on the next patch set that goes out. Jason
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.