Benchmark for java.nio.charset.Charset cache (original) (raw)

Ulf Zibis Ulf.Zibis at gmx.de
Tue Oct 13 13:55:50 UTC 2009


Hi, Martin, Xueming,

I did a benchmark: unsynchronized 2-ElementCache ./. synchronized 4-ElementCache

Result: Usage: java -Xint -Xbootclasspath/p:..\build\classes;..\build\test\classes java.nio.charset.CharsetBenchmark As in real world, excessive loops on Charset.forName() are unlikely, only use interpreter mode here! Benchmark for 100000 from 1 charsets:

For the sources see attachment.

-Ulf



More information about the core-libs-dev mailing list