From: Avdi Grimm Date: 2013-06-04T05:23:43+09:00 Subject: Re: Ruby extremely slow compared to PHP --001a11c268a68819fc04de45bdd2 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Jun 3, 2013 at 4:05 PM, Mick Jagger wrote: > As you could have seen, in my PHP script, the cURL handle is not closed, > what improves a lot the request speed as I have tested. > You can do this with Net::HTTP as well, see the docs: http://ruby-doc.org/stdlib-2.0/libdoc/net/http/rdoc/Net/HTTP.html But a more apples-to-apples comparison would use a Ruby library that also uses libcurl under the hood. I suggest Typhoeus: https://github.com/pauldix/typhoeus --001a11c268a68819fc04de45bdd2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

= On Mon, Jun 3, 2013 at 4:05 PM, Mick Jagger <lists@ruby-forum.com= > wrote:
As you could ha= ve seen, in my PHP script, the cURL handle is not closed,
what improves a lot the request speed as I have tested.
<= /div>
You can do this with Net::HTTP as well, see the docs:=A0http://= ruby-doc.org/stdlib-2.0/libdoc/net/http/rdoc/Net/HTTP.html

But a= more apples-to-apples comparison would use a Ruby library that also uses l= ibcurl under the hood. I suggest Typhoeus:=A0https://github.com/pauldix/typhoeus
--001a11c268a68819fc04de45bdd2--