Skip to content

Instantly share code, notes, and snippets.

View rjewell's full-sized avatar
👋
Heeeey.

Bob Jewell rjewell

👋
Heeeey.
View GitHub Profile
@rjewell
rjewell / ttfb.sh
Created May 6, 2019 18:12 — forked from sandeepraju/ttfb.sh
curl command to check the time to first byte
#!/bin/bash
# file: ttfb.sh
# curl command to check the time to first byte
# ** usage **
# 1. ./ttfb.sh "https://google.com"
# 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com"
curl -o /dev/null \
-H 'Cache-Control: no-cache' \
-s \
check_redirect () {
echo "- Redirect chain for $1 - ";
wget $1 2>&1 | grep Location:
echo;
}