We implement the modified TPC-C benchmark based on the Benchbase framework to replace TPC-C with the modified version. We also change related source files to make the modified TPC-C benchmark work.
To compile the Benchbase using the mysql profile:
cd gRPC-benchbase
./mvnw -DskipTests clean package -P mysqlThis produces artifacts in the target folder, which can be extracted:
cd target
tar xvzf benchbase-mysql.tgz
cd benchbase-mysqlTo execute the Benchbase with tpcc benchmark:
java -jar benchbase.jar -b tpcc -c config/mysql/sample_tpcc_config.xml --create=true --load=true --execute=trueA full list of options can be displayed,
java -jar benchbase.jar -hThe following options are provided:
usage: benchbase
-b,--bench <arg> [required] Benchmark class. Currently
supported: [tpcc, Spree]
-c,--config <arg> [required] Workload configuration file
--clear <arg> Clear all records in the database for this
benchmark
--create <arg> Initialize the database for this benchmark
-d,--directory <arg> Base directory for the result files,
default is current directory
--dialects-export <arg> Export benchmark SQL to a dialects file
--execute <arg> Execute the benchmark workload
-h,--help Print this help
-im,--interval-monitor <arg> Throughput Monitoring Interval in
milliseconds
--load <arg> Load data using the benchmark's data
loader
-s,--sample <arg> Sampling window