Unexpected performance of operator % vs &

Andrew Haley aph-open at littlepinkcloud.com
Sat Jul 22 17:16:44 UTC 2023


On 7/22/23 16:24, Remi Forax wrote:
> Please use JMH for your performance tests, otherwise what you see may just be an artifact of the way you have written the rest of the code, not the code you want to test.

And with "-prof perfasm" you'll be able to see what the optimizer did.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the hotspot-dev mailing list