jina-ai / serve

☁️ Build multimodal AI applications with cloud-native stack
https://jina.ai/serve
Apache License 2.0
21.13k stars 2.22k forks source link

use hello-world as a performance tracker #619

Closed hanxiao closed 4 years ago

hanxiao commented 4 years ago

Describe the feature

Tracking jina overall perf (index & search) across all releases. Use the time elapsed of hello-world as a metric.

Your proposal


Environment

Screenshots

hanxiao commented 4 years ago

Single shot:

docker run -v /tmp:/tmp jinaai/jina:devel hello-world > /tmp/hw.log && perl -lne 'print "$1\t$2" if(/done in ⏱ (.*)s 🐎 (.*)\/s/)' /tmp/hw.log

K-fold:

for j in `seq 3`; do docker run --rm -v /tmp:/tmp jinaai/jina:0.3.5 hello-world > /tmp/hw.log && perl -lne 'print "$1\t$2" if(/done in ⏱ (.*)s 🐎 (.*)\/s/)' /tmp/hw.log; done

gives three lines:

hanxiao commented 4 years ago
locally, 0.3.5 time(s) speed (docs/s)
download 4.3 866.2
index 31.4 1924.2
query 5.6 28.4
0.3.6 (afte #618 where Zmqlet replaced by ZmqStreamlet) time(s) speed (docs/s)
download 4.3 881.2
index 28.0 2160.1
query 3.9 40.9

so #618 worth it! 🥳

jina-bot commented 4 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days

jina-bot commented 4 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days

jina-bot commented 4 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days