Cross platform fix for Java benchmark shell script.

This commit is contained in:
fyrz 2014-10-05 10:46:55 +02:00
parent 81828592b8
commit 22c64be439

View File

@ -1 +1,7 @@
java -server -d64 -XX:NewSize=4m -XX:+AggressiveOpts -Djava.library.path=.:../ -cp "rocksdbjni.jar:.:./*" org.rocksdb.benchmark.DbBenchmark $@ PLATFORM=64
if [ `getconf LONG_BIT` != "64" ]
then
PLATFORM=32
fi
echo "Running benchmark in $PLATFORM-Bit mode."
java -server -d$PLATFORM -XX:NewSize=4m -XX:+AggressiveOpts -Djava.library.path=.:../ -cp "rocksdbjni.jar:.:./*" org.rocksdb.benchmark.DbBenchmark $@