cp .api.env.sample .api.env
cp .proxy.env.sample .proxy.env
# Add your PROVIDER URLs
# You can add as many provider urls as you want, example is given in the sample of the expected structure
# For each PROVIDERNAME please add an environment variable called PROVIDERNAME_URL
docker compose up -d
curl -k --request POST \
--url https://localhost/ASKFJNAKSJNFKJASDJKANSKJDNAJKDNAJKSNDAKNSDKAJSD \
--header 'accept: application/json' --header 'content-type: application/json' --data '
{
"id": 1,
"jsonrpc": "2.0",
"params": [
"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73",
"latest"
],
"method": "eth_getBalance"
}
'
Grafana is hosted behind the reverse proxy using https with self-signed certificate (trust it to open) available at: https://localhost/grafana
Required packages
sudo apt-get install parallel
sudo apt-get install apache2-utils
For 1000 requests using 100 in parallel
./benchmark_simple.sh
For 1000 requests using 10 requests in parallel per each different URL (uses unique tokens)
./benchmark.sh