Skip to content

Instantly share code, notes, and snippets.

@Salakar

Salakar/bench.sh Secret

Last active May 13, 2024 16:41
Show Gist options
  • Save Salakar/3a2d0ca6bc5ff3a498a488f5f5008630 to your computer and use it in GitHub Desktop.
Save Salakar/3a2d0ca6bc5ff3a498a488f5f5008630 to your computer and use it in GitHub Desktop.
Testing pub.globe.dev vs pub.dev
#!/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