Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/csabapalfi/global-latency-test
https://github.com/csabapalfi/global-latency-test
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/csabapalfi/global-latency-test
- Owner: csabapalfi
- Created: 2023-09-25T15:55:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-25T23:40:22.000Z (about 1 year ago)
- Last Synced: 2023-10-12T14:38:42.494Z (about 1 year ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Global latency test
Small vercel edge runtime app + scripts to compare/test latency from all the [18 vercel regions](https://vercel.com/docs/edge-network/regions).
## Usage
```sh
# generate routes for all regions
./script/generate-routes.sh# deploy
vercel deploy
export API_BASEURL=https://.vercel.app/api# setup urls.tsv with \t entries
cat > urls.tsv </-.json files
./scripts/test-urls.sh input/urls.tsv output/run-1# aggregate all latencies in a single CSV file like region,label,latency
./scripts/aggregate.sh output/run-1 > output/run-1/latencies.csv# merge CSV files if you've done multiple runs
./scripts/aggregate.sh output/run-1/latencies.csv output/run-2/latencies.csv > output/latencies.csv
```