2018-01-29 21:43:56 +01:00
|
|
|
# shellcheck disable=SC2148
|
2019-04-18 19:51:19 +02:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
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."
|
2018-01-29 21:43:56 +01:00
|
|
|
# shellcheck disable=SC2068
|
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 $@
|