Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated docuemntation and added readme
- Loading branch information
Showing
17 changed files
with
1,468 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Copyright (c) 2016, Redis Labs, Inc. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# RediSearchBenchmarks | ||
|
||
Source code for benchmarking the RediSearch module, providing scalable high performance full-text search. | ||
|
||
## What's in here | ||
|
||
This is a Go application that can ingest data into the search engine, and benchmark the throughput and latency of running these benchmarks. | ||
|
||
It supports reading [Wikipedia Abstract Data Dumps](https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-abstract.xml) and indexing them, in three search engines: | ||
|
||
* [RediSearch](https://github.com/RedisLabsModules/RediSearch) | ||
* [ElasticSearch](https://www.elastic.co/) | ||
* [Solr](http://lucene.apache.org/solr/) | ||
|
||
## Benchmark output | ||
|
||
For each benchmark, we append a single line to a CSV file, with the engine used, benchmark type, query, concurrency, throughput and latency. | ||
|
||
The default file name is `benchmark.csv`, and running the app with `-o -` will result in the result printed to stdout. | ||
|
||
The output for running a benchmark on the queries "foo,bar,baz" with 4 concurrent clients, looks like this: | ||
|
||
``` | ||
redis,"search: foo,bar,baz",4,14997.81,0.27 | ||
``` | ||
|
||
## Usage | ||
|
||
``` | ||
Usage of ./RediSearchBenchmark: | ||
-benchmark string | ||
[search|suggest] - if set, we run the given benchmark | ||
-c int | ||
benchmark concurrency (default 4) | ||
-duration int | ||
number of seconds to run the benchmark (default 5) | ||
-engine string | ||
[redis|elastic|solr] The search backend to run (default "redis") | ||
-file string | ||
Input file to ingest data from (wikipedia abstracts) | ||
-fuzzy | ||
For redis only - benchmark fuzzy auto suggest | ||
-hosts string | ||
comma separated list of host:port to redis nodes (default "localhost:6379") | ||
-o string | ||
results output file. set to - for stdout (default "benchmark.csv") | ||
-queries string | ||
comma separated list of queries to benchmark (default "hello world") | ||
-scores string | ||
read scores of documents CSV for indexing | ||
-shards int | ||
the number of partitions we want (AT LEAST the number of cluster shards) (default 1) | ||
``` | ||
|
||
## Example: Indexing documents into RediSearch | ||
|
||
``` | ||
./RediSearchBenchmark -engine redis -shards 4 -hosts "localhost:6379,localhost:6380,localhost:6381,localhost:6382" \ | ||
-file ~/wiki/enwiki-20160305-abstract.xml -scores ~/wiki/scores.csv | ||
``` | ||
|
||
## Example: Benchmarking RediSearch with 32 concurrent clients | ||
|
||
``` | ||
./RediSearchBenchmark -engine redis -shards 4 -hosts "localhost:6379,localhost:6380,localhost:6381,localhost:6382" \ | ||
-benchmark search -queries "hello world,foo bar" -c 32 -o out.csv | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.