netty5/microbench/src/main
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
..
java/io/netty Fixed JMH ByteBuf benchmark to avoid dead code elimination 2017-12-19 14:09:18 +01:00
resources Add benchmarks for SSLEngine implementations 2017-02-24 08:02:10 +01:00