Created
January 1, 2018 00:06
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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