view gui_ze/time_to_first_byte.sh @ 33:c0f6c8c7829f

[Seobeo] Linux epoll. Set the client socket to be nonblocking so that it doesn't stop loading when two different threads handle different client calls. I might have problem with socket not being cleaned up properly so need to check that.
author MrJuneJune <me@mrjunejune.com>
date Fri, 10 Oct 2025 06:59:32 -0700
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"