{"id":19200405,"url":"https://github.com/redisearch/redisearchbenchmark","last_synced_at":"2025-07-17T22:34:12.217Z","repository":{"id":37270702,"uuid":"64133715","full_name":"RediSearch/RediSearchBenchmark","owner":"RediSearch","description":"Benchmarks for the RediSearch module","archived":false,"fork":false,"pushed_at":"2022-10-01T11:58:25.000Z","size":180,"stargazers_count":44,"open_issues_count":4,"forks_count":8,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-09T02:52:22.722Z","etag":null,"topics":["benchmark","benchmarking-redisearch","redis-search","redisearch"],"latest_commit_sha":null,"homepage":"https://redisearch.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RediSearch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-25T12:47:29.000Z","updated_at":"2024-07-23T18:29:25.000Z","dependencies_parsed_at":"2023-01-18T22:10:20.711Z","dependency_job_id":null,"html_url":"https://github.com/RediSearch/RediSearchBenchmark","commit_stats":null,"previous_names":["redislabs/redisearchbenchmark"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/RediSearch/RediSearchBenchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RediSearch%2FRediSearchBenchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RediSearch%2FRediSearchBenchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RediSearch%2FRediSearchBenchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RediSearch%2FRediSearchBenchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RediSearch","download_url":"https://codeload.github.com/RediSearch/RediSearchBenchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RediSearch%2FRediSearchBenchmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265672357,"owners_count":23808844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmark","benchmarking-redisearch","redis-search","redisearch"],"created_at":"2024-11-09T12:32:51.697Z","updated_at":"2025-07-17T22:34:12.193Z","avatar_url":"https://github.com/RediSearch.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](https://img.shields.io/github/license/RediSearch/RediSearchBenchmark.svg)](https://github.com/RediSearch/RediSearchBenchmark)\n[![Forum](https://img.shields.io/badge/Forum-RediSearch-blue)](https://forum.redislabs.com/c/modules/redisearch/)\n[![GoDoc](https://godoc.org/github.com/RediSearch/RediSearchBenchmark?status.svg)](https://godoc.org/github.com/RediSearch/RediSearchBenchmark)\n\n# document-benchmark\nThis is a Go application (originally written by Dvir Volk) which supports reading, indexing and searching using two search engines:\n\n* [RediSearch](https://github.com/RediSearch/RediSearch)\n* [Elasticsearch](https://www.elastic.co/)\n\nwith the following datasets:\n\n* [Wikipedia Abstract Data Dumps](https://s3.amazonaws.com/benchmarks.redislabs/redisearch/datasets/enwiki-abstract/enwiki-latest-abstract.xml): from English-language Wikipedia:Database page abstracts. This use case generates 3 TEXT fields per document.\n* [pmc](https://s3.amazonaws.com/benchmarks.redislabs/redisearch/datasets/pmc/documents.json.bz2): Full text benchmark with academic papers from PMC.\n\n\n\n## Getting Started\n\n### Download Standalone binaries ( no Golang needed )\n\nIf you don't have go on your machine and just want to use the produced binaries you can download the following prebuilt bins:\n\nhttps://github.com/RediSearch/RediSearchBenchmark/releases/latest\n\n| OS | Arch | Link |\n| :---         |     :---:      |          ---: |\n| Windows   | amd64  (64-bit X86)     | [document-benchmark-windows-amd64.exe](https://github.com/RediSearch/RediSearchBenchmark/releases/latest/download/document-benchmark-windows-amd64.exe.tar.gz)    |\n| Linux   | amd64  (64-bit X86)     | [document-benchmark-linux-amd64](https://github.com/RediSearch/RediSearchBenchmark/releases/latest/download/document-benchmark-linux-amd64.tar.gz)    |\n| Linux   | arm64 (64-bit ARM)     | [document-benchmark-linux-arm64](https://github.com/RediSearch/RediSearchBenchmark/releases/latest/download/document-benchmark-linux-arm64.tar.gz)    |\n| Darwin   | amd64  (64-bit X86)     | [document-benchmark-darwin-amd64](https://github.com/RediSearch/RediSearchBenchmark/releases/latest/download/document-benchmark-darwin-amd64.tar.gz)    |\n| Darwin   | arm64 (64-bit ARM)     | [document-benchmark-darwin-arm64](https://github.com/RediSearch/RediSearchBenchmark/releases/latest/download/document-benchmark-darwin-arm64.tar.gz)    |\n\nHere's how bash script to download and try it:\n\n```bash\nwget -c https://github.com/RediSearch/RediSearchBenchmark/releases/latest/download/document-benchmark-$(uname -mrs | awk '{ print tolower($1) }')-$(dpkg --print-architecture).tar.gz -O - | tar -xz\n\n# give it a try\n./document-benchmark --help\n```\n\n\n### Installation in a Golang env\n\nThe easiest way to get and install the benchmark utility with a Go Env is to use\n`go get` and then `go install`:\n```bash\n# Fetch this repo\ngo get github.com/RediSearch/RediSearchBenchmark\ncd $GOPATH/src/github.com/RediSearch/RediSearchBenchmark\nmake\n```\n\n\n## Try it out\n\nTo try it out locally we can use docker in the following manner to spin up both a Redis and Elastic environments:\n```\nsudo sysctl -w vm.max_map_count=262144\ndocker run -d -p 9200:9200 -p 9300:9300 -e \"ELASTIC_PASSWORD=password\"  docker.elastic.co/elasticsearch/elasticsearch:8.3.3\ndocker run -d -p 6379:6379 redis/redis-stack:edge\n``` \n\n* Retrieve the wikipedia dataset, and populate with 1000000 documents:\n\n```\nwget https://s3.amazonaws.com/benchmarks.redislabs/redisearch/datasets/enwiki-abstract/enwiki-latest-abstract.xml\n```\n\n* Populate into RediSearch:\n```\n./bin/document-benchmark -hosts \"127.0.0.1:6379\" -engine redis -file enwiki-latest-abstract.xml -maxdocs 100000\n```\n\n* Populate into ElasticSearch:\n```\n./bin/document-benchmark -hosts \"https://127.0.0.1:9200\" -engine elastic -password \"password\" -file enwiki-latest-abstract.xml -maxdocs 100000\n```\n\n* Run the RediSearch benchmark:\n```\n./bin/document-benchmark -hosts \"127.0.0.1:6379\" -engine redis -benchmark search -file enwiki-latest-abstract.xml\n```\n\n* Run the ElasticSearch benchmark:\n```\n./bin/document-benchmark -hosts \"https://127.0.0.1:9200\" -engine elastic -password \"password\" -file enwiki-latest-abstract.xml -benchmark search \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredisearch%2Fredisearchbenchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredisearch%2Fredisearchbenchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredisearch%2Fredisearchbenchmark/lists"}