Skip to content

Instantly share code, notes, and snippets.

@cnjax
Created March 7, 2026 04:03
Show Gist options
  • Select an option

  • Save cnjax/60e3f24711a338d8101f2c9a786f0b18 to your computer and use it in GitHub Desktop.

Select an option

Save cnjax/60e3f24711a338d8101f2c9a786f0b18 to your computer and use it in GitHub Desktop.
check openai api endpoint latency.
curl -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nTLS: %{time_appconnect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n" https://api.openai.com/v1/models \
-H "Authorization: Bearer test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment