[openstack-dev] Issues with Python Requests

Chuck Thier cthier at gmail.com
Fri Apr 4 16:36:53 UTC 2014


On Fri, Apr 4, 2014 at 11:18 AM, Donald Stufft <donald at stufft.io> wrote:

>
> On Apr 4, 2014, at 10:56 AM, Chuck Thier <cthier at gmail.com> wrote:
>
> On Fri, Apr 4, 2014 at 9:44 AM, Donald Stufft <donald at stufft.io> wrote:
>
>> requests should work fine if you used the event let monkey patch the
>> socket module prior to import requests.
>>
>
> That's what I had hoped as well (and is what swift-bench did already), but
> it performs the same if I monkey patch or not.
>
> --
> Chuck
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> Is it running inside of a eventlet.spawn thread?
>

It looks like I missed something the first time, as I tried again and got a
little different behavior.  monkey patching the socket helps, but is still
far slower than it was before.

Currently, swift bench running with requests, does about 25 requests/second
for PUTs and 50 requests/second for GETs.  The same test without requests
does 50 requests/second for PUTs and 200 requests/second for GETs.

I'll try to keep digging to figure out why there is such a performance
difference, but if anyone else has had experience tuning performance with
requests, I would appreciate any input.

--
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140404/ec724477/attachment.html>


More information about the OpenStack-dev mailing list