OpenSearch 向量搜索压测
in Note with 0 comment
OpenSearch 向量搜索压测
in Note with 0 comment

配置情况

opensearch 版本1.1.0,16G jvm

创建 mapping

这里创建两种 mapping,一种是 exact,另外一种是 hnsw。

exact

{
    "feature":{
        "path_match":"feature",
        "mapping":{
            "type":"knn_vector",
            "dimension":256
        }
    }
}

hnsw

{
    "feature":{
        "path_match":"feature",
        "mapping":{
            "type":"knn_vector",
            "dimension":256,
            "method":{
                "name":"hnsw",
                "space_type":"cosinesimil",
                "engine":"nmslib",
                "parameters":{
                    "ef_construction":256,
                    "m":48
                }
            }
        }
    }
}

Index 情况

2021-11-18T09:17:55.png

开始压测

features_exact_1w

10并发+10s
2021-11-18T09:23:52.png

100并发+10s
2021-11-18T09:24:20.png

features_exact_10w

10并发+10s
2021-11-18T09:24:28.png

features_hnsw_1w

10并发+10s
2021-11-18T09:24:50.png

100并发+10s
2021-11-18T09:24:57.png

features_hnsw_10w

10并发+10s
2021-11-18T09:25:19.png

features_hnsw_50w

10并发+10s
2021-11-18T09:25:28.png

features_hnsw_100w

10并发+10s
2021-11-18T09:25:38.png

Responses