juancarlospaco / faster-than-requests

Faster requests on Python 3
https://gist.github.com/juancarlospaco/37da34ed13a609663f55f4466c4dbc3e
MIT License
1.11k stars 90 forks source link

It's not work for me/ #137

Closed vkiskbot closed 3 years ago

vkiskbot commented 3 years ago

I try to do this code:

import time import faster_than_requests as ftrq import requests as rq start_time = time.time()

ftrq.get2str("https://www.binance.com/")

print("--- %s seconds ---" % (time.time() - start_time))

start_time = time.time()

rq.get("https://www.binance.com/")

print("--- %s seconds ---" % (time.time() - start_time))

And i got this:

--- 0.7738809585571289 seconds --- --- 0.42874670028686523 seconds ---

2 times slower than simple request

Python version: Python 3.9.1 Linux: Debian 9 Pip: 21.0.1

juancarlospaco commented 3 years ago

Please try installing the latest version:

juancarlospaco commented 3 years ago

Assuming user made it work (?), with provided comments...