Long.bitCount micro-optimization

Isaac Levy isaac.r.levy at gmail.com
Tue May 9 13:59:15 UTC 2017

On Mon, May 8, 2017 at 10:54 PM Martin Buchholz <martinrb at google.com> wrote:
> Being able to do better here is very impressive.
> I took a quick look and found two things that a paranoid benchmarker like myself would not have done:
> - write the benchmark in scala instead of boring java
> - use jdk8 instead of "head" (i.e. jdk10)
> I would also have benchmarked against the intrinsified version to see how it did.

I had trouble building jmh, so used a setup I already had working.

I added a java runner in https://github.com/isaacl/BitCountJDK, would
you be willing to run a test against head to get a second data point?

More information about the core-libs-dev mailing list