On Aug 22, 2006, at 8:17 PM, Ben Johnson wrote:

> I've found a couple of packages that claim to integrate the curl  
> library
> into ruby. Which one is the standard library?
>
> Also the reason I am asking is because I did some tests and came to  
> find
> out that curl is quite a bit faster than the HTTP library. Is this  
> true,
> maybe my tests were distorted, but curl seemed to be quite a bit  
> faster
> in initializing the connection and downloading.
>
> Would it be smart of me to switch from Net::HTTP to curl? Because a
> tenth of a second is precious in my application.
>
> Thanks for your help.
>
> -- 
> Posted via http://www.ruby-forum.com/.
>

Hey Ben-

	I haven't used the libcurl bindings myself so I can't comment on  
those. But you may want to look at Zed's rfuzz project[1]. It is for  
testing web apps but he also says that it is a faster replacement for  
net/http. Since its http parser is written in c using the same parser  
that mongrel does it should be faster then net/http.

Cheers-
-Ezra

[1] http://www.zedshaw.com/projects/rfuzz/