lz4 / lz4-java

LZ4 compression for Java
Apache License 2.0
1.1k stars 253 forks source link

XXHash performance on ARM #35

Open neophob opened 10 years ago

neophob commented 10 years ago

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

jpountz commented 9 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.