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