Hi Dennis,
Here's my code so far:
import os
import requests
import threading
import time
from Queue import Queue
from test_support import unittest
test_queue = Queue()
def worker(ident, url, queue):
while True:
start = time.clock()
r = requests.get(url)
end =
Hi Dennis,
Nice pseudo code! :-)
Is it possible benchmark/measure the latency of a HTTP connection for
each threads by timing the duration of the requests.get method to complete?
I also plan to test with gevent.monkey extension for enabling
cooperative multithreading support:
from gevent
Hi,
Is it possible to emulate a range of concurrent connections to a http
server with the requests module?
import os
import requests
from test_support import unittest
class HTTPBenchmarkTestCase(unittest.TestCase):
url = 'http://localhost/benchmark/'
def setUp(self):
pass