# Bm + net/http sanity check

**URL:** <https://rubytalk.org/t/bm-net-http-sanity-check/27521>\
**Category:** ruby-talk\
**Created:** [17 May 2006 23:56 UTC](https://rubytalk.org/t/bm-net-http-sanity-check/27521 "2006-05-17T23:56:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DEBAUN\_STEVE\_AG-Cont](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@DEBAUN\_STEVE\_AG-Cont](https://rubytalk.org/u/DEBAUN_STEVE_AG-Cont)\
**Post date:** [17 May 2006 23:56 UTC](https://rubytalk.org/t/bm-net-http-sanity-check/27521/1 "2006-05-17T23:56:36Z")

</div>

Ah ha, that makes more sense. It didn't occur to me that it would take  
multiple roundtrips for a single GET. Gee, now that I think about it, that  
doesn't include the image gets either...

sd

> **···**
>
> -----Original Message-----  
> From: Sam Roberts [mailto:sroberts@uniserve.com]  
> Sent: Wednesday, May 17, 2006 4:53 PM  
> To: ruby-talk@ruby-lang.org  
> Subject: Re: bm + net/http sanity check
> 
> Quoting steve.debaun@seminis.com, on Thu, May 18, 2006 at 07:58:28AM +0900:
> 
> > Only reason I'm asking: ping delta is about 100 ms, but the Net::HTTP
> 
> delta
> 
> > is about 700 ms. This does not jive with what I'm expecting, at all.
> 
> Why not? Sounds ok, setting up, using, and closing down a tcp line  
> should take at least 3 roundtrips, I think, so you'd need at least 300,  
> and if the data transfer takes a bit of time, bit of tcp stack overhead,  
> bit of software doing stuff... sounds like 700 ms.
> 
> running tcpdump might tell you exactly whats going on, with pretty  
> accurate timestamps.
> 
> Cheers,  
> Sam
> 
> This e-mail message may contain privileged and/or confidential information,  
> and is intended to be received only by persons entitled to receive such  
> information. If you have received this e-mail in error, please notify the  
> sender immediately. Please delete it and all attachments from any servers,  
> hard drives or any other media. Other use of this e-mail by you is strictly  
> prohibited.  
> All e-mails and attachments sent and received are subject to monitoring,  
> reading and archival by Seminis. The recipient of this e-mail is solely  
> responsible for checking for the presence of "Viruses" or other "Malware".  
> Seminis accepts no liability for any damage caused by any such code  
> transmitted by or accompanying this e-mail or any attachment.

---

<div class="post-metadata">

**Author:** ![Philip\_Hallstrom](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Philip\_Hallstrom](https://rubytalk.org/u/Philip_Hallstrom)\
**Post date:** [18 May 2006 02:08 UTC](https://rubytalk.org/t/bm-net-http-sanity-check/27521/2 "2006-05-18T02:08:31Z")

</div>

> Ah ha, that makes more sense. It didn't occur to me that it would take  
> multiple roundtrips for a single GET. Gee, now that I think about it, that  
> doesn't include the image gets either...

get() should just download the one page. It's not going to download the images contained within....

You might see if there is a head() (haven't looked, but i imagine there is). That will just query the server and the server will say "yeah, it's there", but won't return any data...

-philip

> **···**
>
> > sd
> > 
> > -----Original Message-----  
> > From: Sam Roberts [mailto:sroberts@uniserve.com]  
> > Sent: Wednesday, May 17, 2006 4:53 PM  
> > To: ruby-talk@ruby-lang.org  
> > Subject: Re: bm + net/http sanity check
> > 
> > Quoting steve.debaun@seminis.com, on Thu, May 18, 2006 at 07:58:28AM +0900:
> > 
> > > Only reason I'm asking: ping delta is about 100 ms, but the Net::HTTP
> > 
> > delta
> > 
> > > is about 700 ms. This does not jive with what I'm expecting, at all.
> > 
> > Why not? Sounds ok, setting up, using, and closing down a tcp line  
> > should take at least 3 roundtrips, I think, so you'd need at least 300,  
> > and if the data transfer takes a bit of time, bit of tcp stack overhead,  
> > bit of software doing stuff... sounds like 700 ms.
> > 
> > running tcpdump might tell you exactly whats going on, with pretty  
> > accurate timestamps.
> > 
> > Cheers,  
> > Sam
> > 
> > This e-mail message may contain privileged and/or confidential information,  
> > and is intended to be received only by persons entitled to receive such  
> > information. If you have received this e-mail in error, please notify the  
> > sender immediately. Please delete it and all attachments from any servers,  
> > hard drives or any other media. Other use of this e-mail by you is strictly  
> > prohibited.  
> > All e-mails and attachments sent and received are subject to monitoring,  
> > reading and archival by Seminis. The recipient of this e-mail is solely  
> > responsible for checking for the presence of "Viruses" or other "Malware".  
> > Seminis accepts no liability for any damage caused by any such code  
> > transmitted by or accompanying this e-mail or any attachment.
