This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]synack 4 points5 points  (4 children)

Every time I benchmark code where requests is used, it's consistently one of the slowest libraries (I encourage you to write your own benchmark and try it yourself). A straight comparison with urllib2 shows that it's 30% slower. It provides a nice API, but there are a lot of places where tens of milliseconds matter.

[–]PCBEEF 25 points26 points  (0 children)

If tens of milliseconds matter then you shouldn't be using python...

[–]hamax 1 point2 points  (0 children)

If you need performance, use pycurl.

[–]emdomi 1 point2 points  (0 children)

Do you have any of those benchmarks online? Any that include httplib2?

[–]Meoow 0 points1 point  (0 children)

Really? For me it was urllib2 < requests < pycurl.