Latency Tracking repository works in accordance with scripts/latency-tracking from Jina Core. It benchmarks the following items over the history of releases:
import jina
time- Index Speed
- Query Speed
- Average Flow Time
DocumentArrayMemmap
Extend Time
Blog post: Benchmark a Decentralized Search System on 79 Past Releases
This repo can't produce benchmark results independently as it works in accordance with scripts/latency-tracking from Jina Core. So, let's prepare the envrionment at first.
git clone git@github.com:jina-ai/jina.git
cd jina
git clone https://github.com/jina-ai/latency-tracking latency
# give the version to benchmark
JINA_VER=master
# benchmark it!
rm -f .dockerignore
docker build --build-arg JINA_VER=$JINA_VER -f latency/Dockerfile -t latency-tracking .
docker run -v $(pwd)/output:/app/output -v $(pwd)/latency/original:/app/original latency-tracking
Require jq
to be installed.
bash latency/batch.sh 5
This will run the last 5 versions in reverse order, i.e. last release first.