Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/semi-technologies/weaviate-benchmarking
This repo contains a tool for benchmarking Weaviate performance.
There are two components you will need to run for the benchmarks:
weaviate
the standard Weaviate imagebenchmarker
a go based benchmarking toolYou can run both as containers on the same machine via Docker compose.
For replicating our benchmarks we recommend setting up two separate machines.
Machine description | CPU type | CPUs | Memory | Disk size | Disk type | Misc. |
---|---|---|---|---|---|---|
Machine to run Weaviate | c2 | 30 | 120GB | 500GB | SSD | Ubuntu 22.04 with Docker-compose |
Machine to run benchmark script | N2 | 8 | 64GB | 500GB | SSD | Ubuntu 22.04 with Docker-compose |
Clone this repo and cd into it $ git clone https://github.com/semi-technologies/weaviate-benchmarking && cd weaviate-benchmarking
Run the following command to spin up Weaviate: $ docker-compose up weaviate -d
Copy the IP address and amount of CPU cores this machine has.
Check if the Weaviate machine is available: curl http://{IP OF WEAVIATE INSTANCE}/v1/meta
. Note that the instance runs on port 8080
, e.g., http://10.128.15.12:8080/v1/meta
.
You will also need to allow port 50051
for gRPC and 21121
for metrics. You can verify this via nc -zv localhost 50051
.
Clone this repo and cd into it $ git clone https://github.com/semi-technologies/weaviate-benchmarking && cd weaviate-benchmarking
Download the files into a datasets folder as outlined below.
mkdir datasets && \
curl -o ./datasets/dbpedia-100k-openai-ada002-angular.hdf5 https://storage.googleapis.com/ann-datasets/custom/dbpedia-100k-openai-ada002-angular.hdf5 \
curl -o ./datasets/deep-image-96-angular.hdf5 https://ann-benchmarks.com/deep-image-96-angular.hdf5 && \
curl -o ./datasets/mnist-784-euclidean.hdf5 https://ann-benchmarks.com/mnist-784-euclidean.hdf5 && \
curl -o ./datasets/gist-960-euclidean.hdf5 https://ann-benchmarks.com/gist-960-euclidean.hdf5
Run a single performance test on an ann-benchmarks hdf5 dataset.
DATASET=./datasets/dbpedia-100k-openai-ada002-angular.hdf5 DISTANCE=cosine docker compose run benchmarker
For more details on additional configuration options see the help options.
docker compose run benchmarker /app/benchmarker ann-benchmark -h
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.