Merge pull request #337 from fyrz/cross-platform-jdb_bench

Cross platform fix for Java benchmark shell script.
This commit is contained in:
ankgup87 2014-10-06 10:38:13 -07:00
commit e107b6b2ae
1 changed files with 7 additions and 1 deletions

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 $@