On Mon, Jun 3, 2013 at 4:05 PM, Mick Jagger <lists / ruby-forum.com> 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