Skip to content
Some experimentation code to test which IPFS gateways provide the best performance
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
results
.gitignore
LICENSE
README.md
main.py

README.md

IPFS Gateway Tester

IPFS gateway tester runs some bare bones Python code to test the performance of common IPFS gateways. It currently tests the following gateway providers:

It tests each gateway provider against three different file types:

  • Text File (QmSQfLsPDKaFJM3SPKZYU971XSCArXKVCAWcEzQaKgtxQp)
  • Image File (QmUTcaZg3UVqKxM8GvjEVjtNaFDCsG3EAQAU4nzmdi7Vis)
  • Video File (QmbvdTQ5eCS7MqBfqv93Pdhy74p95XHuLh5nzSmaQiu6wk)

Requirements

IPFS gateway tester requires:

Running The Test

Assuming you have Python 3.6+ installed on your computer, you can do the following:

git clone https://github.com/lyttlerock/ipfs-gateway-tester.git
cd ipfs-gateway-tester
virtualenv venv
pip install requests
python main.py

This will start the test and spit out a CSV file (results.csv) that has three columns of data:

  • Provider (ex. Protocol Labs, Cloudflare, etc.)
  • Hash (hash of the file fetched)
  • Time (in milliseconds)

You can use the hash map provided in the intro section above to make them human readable if needed.

results/*

The results directory is the output of the tests that I ran using this code. It contains results from different AWS t2.micro instances spread across geographies. Feel free to use this data if you'd like to skip running the code yourself.

You can’t perform that action at this time.