This simple tool will fire a series of inference requests at the Roboflow remote inference API or one of our Docker containers running on your hardware and measures the throughput.
A recent version of Node.js (eg 12 or higher).
cd
into this directory and run npm install
.
Optional: place your test images in the images
folder; the repo contains some
images from the EgoHands dataset
Edit benchmark.js
to add your API Key and model endpoint then configure which
deployment target you're testing (and its local IP address if applicable).
Then run node benchmark.js
You can also set a ROBOFLOW_KEY environment variable or put your API key into a
.roboflow_key
file in this directory.