Optimize the Java benchmark to be as close to Netty as possible.