TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Timing with Curl (2010)

89 pointsby kamarajualmost 2 years ago

6 comments

donatjalmost 2 years ago
Oh this is fantastic. I had no idea curl could even do this sort of thing. Every time I think I have my head around everything curl can do, I am proven wrong. It really is an amazing tool that enables so many things.
评论 #37134311 未加载
hassyalmost 2 years ago
curl is fantastic. There&#x27;s also HTTPStat which provides a waterfall visualization on top of curl timings: <a href="https:&#x2F;&#x2F;github.com&#x2F;reorx&#x2F;httpstat">https:&#x2F;&#x2F;github.com&#x2F;reorx&#x2F;httpstat</a><p>There&#x27;s also Skytrace (made by yours truly), which provides timing info as a waterfall visualization inspired by HTTPStat + lots more (syntax highlighting for responses, built-in JMESPath support, command-line assertions and checks etc) - <a href="https:&#x2F;&#x2F;github.com&#x2F;artilleryio&#x2F;artillery&#x2F;tree&#x2F;main&#x2F;packages&#x2F;skytrace#skytrace-ping">https:&#x2F;&#x2F;github.com&#x2F;artilleryio&#x2F;artillery&#x2F;tree&#x2F;main&#x2F;packages&#x2F;...</a>
dheeraalmost 2 years ago
Nit:<p>&gt; Here is the same command written as a one-liner<p>Maybe don&#x27;t include the &quot;\n&quot; in the triple-click selection so that one can inspect it before hitting enter. Currently it copies the &quot;\n&quot; to the clipboard and then when you paste in the terminal it directly executes.
评论 #37141998 未加载
flas9sdalmost 2 years ago
great for doing measurements in a cron to later plot them. Here someone measured TLS version latencies on gov.uk - <a href="https:&#x2F;&#x2F;nooshu.com&#x2F;blog&#x2F;2020&#x2F;07&#x2F;30&#x2F;measuring-tls-13-ipv4-ipv6-performance&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;nooshu.com&#x2F;blog&#x2F;2020&#x2F;07&#x2F;30&#x2F;measuring-tls-13-ipv4-ipv...</a> and has a good graph explaining the time_* variables
tra3almost 2 years ago
curl is such an amazing tool. Most of my coworkers are not comfortable with the command line and prefer to use GUI tools like postman. Having curl as part of your shell&#x27;s history is a minor super power.<p>What was that API end point that was failing 3 months ago with a weird status?<p>1. Hit C-r for reverse search (bonus if you&#x27;ve got fzf installed) 2. Type a partial URL 3. Identify the curl command you want, and hit enter.<p>I recently used timing support (as described in the article). I actually found it in AWS docs when I was trying to understand why things weren&#x27;t as fast as expected. Now it&#x27;s in permanent record in my shell.<p>Anyway, +1 for curl.
评论 #37136835 未加载
AdamJacobMulleralmost 2 years ago
--trace-time is also great in curl