Skip to content

JMH benchmark for #39 and #42

Christoph John edited this page May 9, 2018 · 11 revisions

Just wanted to keep this here for further reference.

With #39 and #42 there were some changes done to have less GC happen and to improve the general Message.toString() performance.

Here are the files used. Just package them into a new JMH benchmark project and then use

  • mvn clean install
  • java -jar target/benchmarks.jar -prof gc

JMH benchmark
Message.java - the improved method is called toString2()
FieldMap.java
NumbersCache.java