Skip to content

Instantly share code, notes, and snippets.

@jmitchell
Created January 1, 2018 00:06
Show Gist options
  • Save jmitchell/e27ca00ce76873c536543a9285e5e8d9 to your computer and use it in GitHub Desktop.
Save jmitchell/e27ca00ce76873c536543a9285e5e8d9 to your computer and use it in GitHub Desktop.
Test IPFS read-what-you-write latency by adding a new uuid to the network and timing how long it takes to read it
#!/usr/bin/env bash
hash=`uuidgen -r | ipfs add -q`
url="https://ipfs.io/ipfs/$hash"
time curl "$url"
echo $url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment