Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.86 KB

File metadata and controls

43 lines (33 loc) · 1.86 KB

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/aamnv/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.