0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-11-23 13:16:16 +00:00
libsql/libsql-sqlite3/benchmark/Makefile
Sivukhin Nikita 4b21878187
add benchmark scripts (#1546)
* add benchmark scripts

* remove unnecessary srand
2024-07-12 10:04:59 +00:00

36 lines
966 B
Makefile

C_INCLUDE_PATH := ../
all: diskann bruteforce no_vectors
anntest: anntest.c
@cc anntest.c -o anntest -L ../.libs/ -llibsql -O2
benchtest: benchtest.c
@cc benchtest.c -o benchtest -L ../.libs/ -llibsql -O2
blobtest: blobtest.c
@cc blobtest.c -o blobtest -L ../.libs/ -llibsql -O2
diskann.sql:
@python3 workload.py diskann 64 1000 1000 > diskann.sql
diskann: benchtest diskann.sql
@rm test.db || exit 0
@LD_LIBRARY_PATH=../.libs/ ./benchtest diskann.sql test.db
bruteforce.sql:
@python3 workload.py bruteforce 64 1000 1000 > bruteforce.sql
bruteforce: benchtest bruteforce.sql
@rm test.db || exit 0
@LD_LIBRARY_PATH=../.libs/ ./benchtest bruteforce.sql test.db
no_vectors.sql:
@python3 workload.py no_vectors 1000 1000 > no_vectors.sql
no_vectors: benchtest no_vectors.sql
@rm test.db || exit 0
@LD_LIBRARY_PATH=../.libs/ ./benchtest no_vectors.sql test.db
clean:
-rm benchtest
-rm blobtest
-rm anntest
-rm *.sql
-rm *.db
-rm *.db-*
-rm *.db-*