Gist 856f34e76a439df2c77e4585cc17d659
✓ Published0🌍 Public
Aandrewxhill
Last edited Apr 5, 2019
Created on Apr 5, 2019
This visualization tests the availability and response times of 19 public IPFS gateways by repeatedly pinning random-content files to a local peer and requesting them through each gateway. It measures either the HTTP status code or elapsed request time (in seconds) for every attempt, with timeouts recorded as 9999 and non-200 responses stored as their status code. The code uses the `ipfsapi` Python library to add files to a local IPFS node and the `requests` library to perform timed HTTP GET requests against each gateway URL. Results are printed as tuples of gateway name, time/status, and the content hash, revealing which gateways are fastest, slowest, or failing entirely.
AI-generated description