Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/csabapalfi/global-latency-test


https://github.com/csabapalfi/global-latency-test

Last synced: 24 days ago
JSON representation

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
```