fabienrenaud / java-json-benchmark

Performance testing of serialization and deserialization of Java JSON libraries
MIT License
965 stars 134 forks source link

Remove AggressiveOpts #62

Closed marschall closed 1 year ago

marschall commented 1 year ago

Remove AggressiveOpts, it is no longer supported on the latest Java versions.

AggressiveOpts have been removed in JDK 12 by JDK-8150552 with the reasoning

-XX:+AggressiveOpts has been used as a catch-all method of enabling various experimental performance features, mostly targetted to improve score on very specific benchmarks. Most things it affected has been removed or integrated over time, e.g., JDK-8024826, leaving the behavior of the flag ill-defined and prone to cause more issues than it'll solve.

I ran a check with -XX:+PrintFlagsFinal on JDK 11.0.17 and the only differences I could find were

Flag Default AggressiveOpts
AutoBoxCacheMax 128 20000
BiasedLockingStartupDelay 0 500

Note that -server is also questionable, to the best of my knowledge 64bit is always server class