turso-latency-checker
v1.1.0
Published
A simple bash script to measure latency to all Turso database regions and identify the fastest location for your connection.
Maintainers
Readme
Turso Latency Checker
A simple bash script to measure latency to all Turso database regions and identify the fastest location for your connection.
Features
- Tests latency to all available Turso regions
- Identifies gateway regions
- Displays results in a clean, formatted table sorted by latency
- Highlights the fastest region for your connection
- Shows a nice spinner animation during testing
Installation
You can install this script in several ways:
Method 1: Using npm or pnpm (Recommended)
# Using npm
npm install -g turso-latency-checker
# OR using pnpm
pnpm add -g turso-latency-checkerThen run the tool from anywhere:
turso-latency-checkerMethod 2: Direct download
# Download the script
curl -o turso-latency-checker https://raw.githubusercontent.com/renchris/turso-latency-checker/main/turso-latency-checker.sh
# Make it executable
chmod +x turso-latency-checker
# Move to a directory in your PATH (optional)
sudo mv turso-latency-checker /usr/local/bin/Method 3: Using this repository
# Clone the repository
git clone https://github.com/renchris/turso-latency-checker.git
# Enter the directory
cd turso-latency-checker
# Make the script executable
chmod +x turso-latency-checker.sh
# Run the script
./turso-latency-checker.shUsage
Simply run the script:
turso-latency-checkerThe script will:
- Connect to all Turso regions in parallel
- Measure the latency for each region
- Display a table of results sorted by latency
- Highlight the fastest region for your connection
Requirements
- Bash shell
curlfor making HTTP requestsbcfor floating-point calculations
License
MIT
Acknowledgements
This tool was created to help Turso database users find the optimal region for their applications.
