OpenMLDB Benchmak tool is used for tesing the performance of OpenMLDB's online SQL engine.
- CentOS 7 / macOS >= 10.15
- JDK 1.8
- Compile
cd benchmark mvn clean package
- Copy the configuration and package
mkdir -p /work/benchmark/conf /work/benchmark/lib cp target/openmldb-benchmark-0.5.0.jar /work/benchmark/lib cp src/main/resources/conf.properties /work/benchmark/conf
- Modify the configuration
ZK_CLUSTER=127.0.0.1:32200 ZK_PATH=/udf_test
- Run benchmark
cd /work/benchmark java -cp conf/:lib/* com._4paradigm.openmldb.benchmark.OpenMLDBPerfBenchmark
The above testing run with the default confguration. You can modify WINDOW_NUM
, WINDOW_SIZE
and JOIN_NUM
in the confguration file if you want to evaluate the performance impact of those parameters.
Moreover, the default number of threads is 10. You need to set the thread number by Threads
annotation in OpenMLDBPerfBenchmark.java
or OpenMLDBLongWindowBenchmark.java
as below and compile again if you want to test under other thread confguration.
@Threads(10)
If you want to test Throughput
, set BenchmarkMode
and OutputTimeUnit
annotation in OpenMLDBPerfBenchmark.java
or OpenMLDBLongWindowBenchmark.java
file as below:
@BenchmarkMode(Mode.Throughput)
@OutputTimeUnit(TimeUnit.SECONDS)
Update WINDOW_SIZE
in confguration file and execute the following command.
java -cp conf/:lib/ com._4paradigm.openmldb.benchmark.OpenMLDBLongWindowBenchmark