Use direct ByteBuffer for performance test
Use Math.min instead of ternary expression
Merge branch 'master' into off-heap-01