I have a list of urls, something like
urls = [a long list of urls]
Now I am obtaining a random integer between 0 and length of the list as follows.
rand = random.randint(0, len(urls))
Now lets say I have two methods to call say method1() and method2() and I want to generate some sort of load on them.
So first time I want one url and then call method1() and method2() and get the time, next time two urls from the list and then call both the methods, the third time with three urls and so on. Finally I want to plot the time it took to execute the method with one url, with two url and so on.
How can I do this.