On Sat, 14 Nov 2026 06:31:13 GMT, Shawn Emery <[email protected]> wrote:

> Would be nice to include a AES-CTR benchmark test suite to keep track of 
> progress for this mode. This would cover the three key sizes and perhaps 
> three data sizes (64, 1024, and 16384).

During development, I had myself a whitebox test for just the intrinsic itself, 
but didnt check that (required making whole bunch of things public). In the PR 
description box, I included a script to use the existing JMH (with lots of 
parameters). Benchmarking this via the existing JMH is an absolute pain: JCE 
generates a lot of GC traffic, so you got to work (pretty hard) to isolate 
numbers from GC effects. JMH does give that to you for free, but you got to 
know how to operate it.. I think. (i.e. all the forks, split a run into more 
smaller iterations, and interleaving base-to-new comparisons..)

> Is there a case in which AES-CTR was chosen to be optimized rather than other 
> modes, such as AES-GCM?

This was my first excursion into AESNI, seemed like a good simple starting 
point.. Hope to get to other modes, though this one was a lot more effort then 
I originally expected.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/33128#issuecomment-6923903789

Reply via email to