Open neophob opened 10 years ago
@neophob The benchmarks have been run on my desktop, I would not be surprised that one would get very different results on an ARM system. Can you check which xxhash implementation you are using? The 1.2.0 JAR doesn't have native bindings so that should be either the safe or the unsafe (if your JVM has a working sun.misc.Unsafe) impl. You can check this by just printing out the XXHashFactory that you get.
I did some basic performance tests (https://github.com/neophob/PixelController/tree/develop) comparing XXHash and Adler32 on some ARM systems (RPi and BBB). XXHash should be must faster than Adler32, according to your benchmarks (http://jpountz.github.io/lz4-java/1.2.0/xxhash-benchmark/).
I use v1.2.0. So there are 3 possibilities: a) my benchmark sucks b) my code sucks c) the code is not really fast on ARM
My code can be found here: https://github.com/neophob/PixelController/blob/develop/pixelcontroller-core/src/main/java/com/neophob/sematrix/core/perf/PerfTests.java