netty5/microbench/src/main/java/io/netty
Francesco Nigro 1cf2687244 Fixed JMH ByteBuf benchmark to avoid dead code elimination
Motivation:

The JMH doc suggests to use BlackHoles to avoid dead code elimination hence would be better to follow this best practice.

Modifications:

Each benchmark method is returning the ByteBuf/ByteBuffer to avoid the JVM to perform any dead code elimination.

Result:

The results are more reliable and comparable to the others provided by other ByteBuf benchmarks (eg HeapByteBufBenchmark)
2017-12-19 14:09:18 +01:00
..
buffer Optimistically update ref counts 2017-10-04 08:42:33 +02:00
handler/codec HttpMethod#valueOf improvement 2017-11-20 11:07:50 -08:00
microbench Fixed JMH ByteBuf benchmark to avoid dead code elimination 2017-12-19 14:09:18 +01:00
microbenchmark/common Optimizations in NetUtil 2017-05-18 16:42:22 -07:00