Merge branch 'io_uring' of https://github.com/qdrant/landing_page into io_uring

This commit is contained in:
David Sertic
2023-06-23 10:22:19 +02:00
committed by Andre Bogus
3 changed files with 33 additions and 35 deletions
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