How to run the performance tests.
See run.sh
. Run ./run.sh
for usage.
For example:
./run.sh -b /tmp/search-bench/bin -t /tmp/search-bench/out -- '.*AutomaticIndexing.*\.performanceSummaries' -wi 1 -i 1 -r 60s -p initialCompanyCount=10 -v silent
> mvn clean install -Dhsearch.version=6
> java -jar jmh-lucene/target/benhmark.jar
> mvn clean install -Dhsearch.version=5
> java -jar jmh-lucene/target/benhmark.jar
[p0]> mvn clean install -Dhsearch.version=6
<< fork `p1` from `p0` >>
[p1]> docker run -it --rm=true --name es-7.10-it -p 9200:9200 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
[p0]> java -jar jmh-elasticsearch/target/benhmark.jar
Run Elasticsearch server in another process e.g.: p1
.
[p0]> mvn clean install -Dhsearch.version=5
<< fork `p1` from `p0` >>
[p1]> docker run -it --rm=true --name es-5.6-it -p 9200:9200 -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:5.6.16
[p0]> java -jar jmh-elasticsearch/target/benchmark.jar
Run Elasticsearch server in another process e.g.: p1
.