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 f25bd93
Show file tree
Hide file tree
Showing 8 changed files with 276 additions and 61 deletions.
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 f25bd93

Please sign in to comment.