Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

1.1 KB
Raw Blame

Xerj hot-path benchmark

Single node, --insecure, release binary. Generated by demo/playbooks/bench.mjs.

Bulk ingest

  • Docs ingested: 100,000 (real LLM-telemetry corpus, 10,000/batch)
  • Wall time (bulk only): 6.1 s
  • Throughput: 16,514 docs/s

Read-path latency (ms) — 100 iters after warmup, over 100,000 docs

operation mean p50 p95 p99 max
match_all (size 10) 2.27 2.26 3.43 4.09 4.09
term filter 1.95 2.09 2.45 2.79 2.79
bool must+filter 1.98 2.08 2.42 2.83 2.83
range 1.98 2.13 2.45 2.97 2.97
agg: terms(model) 22.74 1.86 2.73 2091.87 2091.87
agg: stats(latency_ms) 1.63 1.64 1.91 3.03 3.03
agg: date_histogram 1.76 1.64 1.86 18.52 18.52
agg: terms+nested avg 1.68 1.69 1.95 2.87 2.87
cardinality 1.83 1.60 1.84 24.37 24.37
_count 3.18 3.27 3.94 4.19 4.19
kNN k=10 (20k×16d) 2.15 1.94 2.18 25.18 25.18

All latencies are end-to-end HTTP round-trip from localhost. kNN over a separate 20k×16-d HNSW index.