tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
11.26k stars 286 forks source link

add benchmark scripts #1546

Closed sivukhin closed 4 months ago

sivukhin commented 4 months ago

Context

Several benchmark tools which I use for vector feature. This PR includes following scripts:

See README.md for more details

penberg commented 4 months ago

Nice, @sivukhin!

haaawk commented 4 months ago

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?

sivukhin commented 4 months ago

@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