mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-27 15:08:30 +02:00
Merge branch 'io_uring' of https://github.com/qdrant/landing_page into io_uring
This commit is contained in:
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
export QDRANT_URL="<qdrant url>"
|
||||
export COLLECTION="<collection name>"
|
||||
export CONCURRENCY=4 # or 8
|
||||
export OVERSAMPLING=1 # or 4
|
||||
|
||||
time seq 1000 | xargs -P ${CONCURRENCY} -I {} curl -L -X POST \
|
||||
"http://${QDRANT_URL}/collections/${COLLECTION}/points/recommend" \
|
||||
-H 'Content-Type: application/json' --data-raw \
|
||||
"{ \"limit\": 10, \"positive\": [{}], \"params\": { \"quantization\": \
|
||||
{ \"rescore\": true, \"oversampling\": ${OVERSAMPLING} } } }" \
|
||||
-s | jq .status | wc -l
|
||||
|
||||
time seq 1000 2000 | xargs -P ${CONCURRENCY} -I {} curl -L -X POST \
|
||||
"${QDRANT_URL}/collections/${COLLECTION}/points/recommend" \
|
||||
-H 'Content-Type: application/json' --data-raw \
|
||||
"{ \"limit\": 10, \"positive\": [{}], \"params\": { \"quantization\": \
|
||||
{ \"rescore\": true, \"oversampling\": ${OVERSAMPLING} } } }" \
|
||||
-s | jq .status | wc -l
|
||||
|
||||
time seq 2000 3000 | xargs -P ${CONCURRENCY} -I {} curl -L -X POST \
|
||||
"${QDRANT_URL}/collections/${COLLECTION}/points/recommend" \
|
||||
-H 'Content-Type: application/json' --data-raw \
|
||||
"{ \"limit\": 10, \"positive\": [{}], \"params\": { \"quantization\": \
|
||||
{ \"rescore\": true, \"oversampling\": ${OVERSAMPLING} } } }" \
|
||||
-s | jq .status | wc -l
|
||||
Reference in New Issue
Block a user