Back to Dragonfly

README

tools/vector-benches/README.md

1.38.2984 B
Original Source

Tool for benchmarking vector search with randomized vectors.

Logic

The tool connects to the Redis/Dragonfly instance.

  1. Checks if the database has enough data (at least 50% of requested -n). If not, it flushes the DB and generates random vectors.
  2. Checks if the index idx exists. If not, it creates it.
  3. Runs concurrent search queries and reports latency/QPS.

Arguments

FlagDefaultDescription
-n50000Number of vectors to populate if the DB is empty.
-q1000Total number of queries to run during the benchmark.
-t8Query threads. Number of concurrent workers sending queries.
-d100Vector dimension. Size of the float32 vectors.
-k10Top K. Number of nearest neighbors to retrieve per query.
-p6379Port of the server.
-hlocalhostHost of the server.

Run with -h (help) to see these defaults in the tool itself.