view gui_ze/time_to_first_byte.sh @ 45:ac8626c7859c

[Gara] Re-writing basic logic in C and hoping that I can import that into Java.
author MrJuneJune <me@mrjunejune.com>
date Wed, 03 Dec 2025 20:51:50 -0800
parents 2d0d0b6c8906
children
line wrap: on
line source

#!/bin/bash
set -euo pipefail

URL="${1:-http://seobeo.babocoder.com/}"

curl -o /dev/null -s -w 'namelookup: %{time_namelookup}s\nconnect: %{time_connect}s\ntls: %{time_appconnect}s\nrequest: %{time_pretransfer}s\nTTFB: %{time_starttransfer}s\ntotal: %{time_total}s\n' "$URL"