libsql
libsql copied to clipboard
add benchmark scripts
Context
Several benchmark tools which I use for vector feature. This PR includes following scripts:
-
benchtest- generic tool which measure performance of any sequence of SQL statements -
anntest- tool for measuringn-recall@kof ANN vector search -
blobtest- simple tool which aims to prove thatsqlite3_blob_reopenAPI can result in way better performance
See README.md for more details
Nice, @sivukhin!
In anntest you call srand(time(NULL)); at the beginning of main but you don't do that in the other two tests. Is this on purpose?
@haaawk - I don't need srand in the anntest actually. This is "legacy" - initially I generated ANN workload right inside anntest C code but later decided to move it to the python workload.py script as it's easier to generate random floats with different distributions from there.
Removed it from the branch