A smaller GC benchmark
bearophile
bearophileHUGS at lycos.com
Mon Dec 10 12:31:08 PST 2007
Regarding that Java version, the HotSpot Java compiler FAQ warns to not use code like that:
http://java.sun.com/docs/hotspot/HotSpotFAQ.html
It says:
if you insist on using/writing microbenchmarks like this, you can work around the problem by moving the body of main to a new method and calling it once from main to give the compiler a chance to compile the code, then calling it again in the timing bracket to see how fast HotSpot is.
More information about the Digitalmars-d
mailing list