When I read this article <http://www.javacodegeeks.com/2013/08/which-memory-is-faster-heap-or-bytebuffer-or-direct.html>, I couldn't help myself but to compare it with a Julia implementation. I put all the results and code into this repository: https://github.com/SimonDanisch/ByteBufferBench Summary: Tested with:
Julia Version 0.4 Version 0.4.0-dev+2654 (2015-01-13 01:45 UTC) java version "1.8.0_25" Both on linux with Intel® Core™ i3-4130 CPU @ 3.40GHz × 4 (three value pairs for every benchmark: min, max, mean) [image: Bench] <https://github.com/SimonDanisch/ByteBufferBench/blob/master/benchmarks.png> My (relatively) trivial, 27 line long, ByteBuffer implementation being only slightly slower than Javas OffHeapObject implemented via Javas unsafe API. Please feel free to help beat Java and/or correct mistakes! I must admit, I don't know anything about ByteBuffers, so I might have implemented it incorrectly. If we finalize this a bit, I might write an article about it ;) Best, Simon
