2014-10-05 10:46:55 +02:00
|
|
|
PLATFORM=64
|
|
|
|
if [ `getconf LONG_BIT` != "64" ]
|
|
|
|
then
|
|
|
|
PLATFORM=32
|
|
|
|
fi
|
2015-01-31 23:42:13 +01:00
|
|
|
|
|
|
|
ROCKS_JAR=`find target -name rocksdbjni*.jar`
|
|
|
|
|
2014-10-05 10:46:55 +02:00
|
|
|
echo "Running benchmark in $PLATFORM-Bit mode."
|
2015-01-31 23:42:13 +01:00
|
|
|
java -server -d$PLATFORM -XX:NewSize=4m -XX:+AggressiveOpts -Djava.library.path=target -cp "${ROCKS_JAR}:benchmark/target/classes" org.rocksdb.benchmark.DbBenchmark $@
|