Skip to content

Commit

Permalink
record the test time; add version / note info for milvus and zillizcl…
Browse files Browse the repository at this point in the history
…oud results;

Signed-off-by: min.tian <[email protected]>
  • Loading branch information
alwayslove2013 committed Oct 18, 2024
1 parent 5e7e438 commit ff4b634
Show file tree
Hide file tree
Showing 9 changed files with 287 additions and 64 deletions.
14 changes: 11 additions & 3 deletions vectordb_bench/frontend/vdb_benchmark.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import streamlit as st
from vectordb_bench.frontend.components.check_results.footer import footer
from vectordb_bench.frontend.components.check_results.stPageConfig import initResultsPageConfig
from vectordb_bench.frontend.components.check_results.stPageConfig import (
initResultsPageConfig,
)
from vectordb_bench.frontend.components.check_results.headerIcon import drawHeaderIcon
from vectordb_bench.frontend.components.check_results.nav import NavToQuriesPerDollar, NavToRunTest
from vectordb_bench.frontend.components.check_results.nav import (
NavToQuriesPerDollar,
NavToRunTest,
)
from vectordb_bench.frontend.components.check_results.charts import drawCharts
from vectordb_bench.frontend.components.check_results.filters import getshownData
from vectordb_bench.frontend.components.get_results.saveAsImage import getResults
Expand All @@ -20,7 +25,10 @@ def main():
allResults = benchMarkRunner.get_results()

st.title("Vector Database Benchmark")
st.caption("Note that all testing was completed in July 2023, except for the times already noted.")
st.caption(
"Except for zillizcloud-v2024.1, which was tested in _January 2024_, all other tests were completed before _August 2023_."
)
st.caption("All tested milvus are in _standalone_ mode.")

# results selector and filter
resultSelectorContainer = st.sidebar.container()
Expand Down
8 changes: 6 additions & 2 deletions vectordb_bench/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,20 @@ class TestResult(BaseModel):
results: list[CaseResult]

file_fmt: str = "result_{}_{}_{}.json" # result_20230718_statndard_milvus.json
timestamp: float = 0.0

def flush(self):
db2case = self.get_db_results()

timestamp = date.today().timestamp()
result_root = config.RESULTS_LOCAL_DIR
for db, result in db2case.items():
self.write_db_file(
result_dir=result_root.joinpath(db.value),
partial=TestResult(
run_id=self.run_id, task_label=self.task_label, results=result
run_id=self.run_id,
task_label=self.task_label,
results=result,
timestamp=timestamp,
),
db=db.value.lower(),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand All @@ -40,6 +42,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand All @@ -66,6 +70,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand All @@ -92,6 +98,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand All @@ -118,6 +126,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand All @@ -144,6 +154,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand All @@ -170,6 +182,8 @@
"db": "Milvus",
"db_config": {
"db_label": "4c16g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand All @@ -196,6 +210,8 @@
"db": "Milvus",
"db_config": {
"db_label": "4c16g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand All @@ -222,6 +238,8 @@
"db": "Milvus",
"db_config": {
"db_label": "4c16g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand All @@ -248,6 +266,8 @@
"db": "Milvus",
"db_config": {
"db_label": "4c16g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -276,6 +296,8 @@
"db": "Milvus",
"db_config": {
"db_label": "4c16g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -304,6 +326,8 @@
"db": "Milvus",
"db_config": {
"db_label": "4c16g-disk",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -332,6 +356,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -360,6 +386,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -388,6 +416,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -416,6 +446,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -444,6 +476,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -472,6 +506,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -500,6 +536,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -528,6 +566,8 @@
"db": "Milvus",
"db_config": {
"db_label": "2c8g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -556,6 +596,8 @@
"db": "Milvus",
"db_config": {
"db_label": "16c64g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -584,6 +626,8 @@
"db": "Milvus",
"db_config": {
"db_label": "16c64g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -612,6 +656,8 @@
"db": "Milvus",
"db_config": {
"db_label": "16c64g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -640,6 +686,8 @@
"db": "Milvus",
"db_config": {
"db_label": "16c64g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -668,6 +716,8 @@
"db": "Milvus",
"db_config": {
"db_label": "16c64g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand Down Expand Up @@ -696,6 +746,8 @@
"db": "Milvus",
"db_config": {
"db_label": "16c64g-hnsw",
"version": "v2.2.12",
"note": "standalone mode",
"uri": "**********"
},
"db_case_config": {
Expand All @@ -714,4 +766,4 @@
}
],
"file_fmt": "result_{}_{}_{}.json"
}
}
Loading

0 comments on commit ff4b634

Please sign in to comment.