-
-
Save Salakar/3a2d0ca6bc5ff3a498a488f5f5008630 to your computer and use it in GitHub Desktop.
Testing pub.globe.dev vs pub.dev
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
#!/bin/bash | |
# Note this will wipe your local pub cache | |
rm -rf ~/.pub-cache | |
start=$(date +%s.%N) | |
flutter pub get > /dev/null | |
end=$(date +%s.%N) | |
runtime=$(echo "$end - $start" | bc) | |
echo "pub.dev: $runtime seconds" | |
# Note this will wipe your local pub cache | |
rm -rf ~/.pub-cache | |
start2=$(date +%s.%N) | |
PUB_HOSTED_URL=https://pub.globe.dev flutter pub get > /dev/null | |
end2=$(date +%s.%N) | |
runtime2=$(echo "$end2 - $start2" | bc) | |
echo "pub.globe.dev: $runtime2 seconds" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment