Skip to content

hibernate/hibernate-search-benchmark

Repository files navigation

hibernate-search-benchmark

How to run the performance tests.

All backends and Search versions

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

Lucene

Search 6

> mvn clean install -Dhsearch.version=6
> java -jar jmh-lucene/target/benhmark.jar

Search 5

> mvn clean install -Dhsearch.version=5
> java -jar jmh-lucene/target/benhmark.jar

Elasticsearch

Search 6

[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.

Search 5

[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.