def benchmark(func, iters=100000): start = time.time() for i in range(iters): r = func(list1, list2) end = time.time() print "%d iterations of %s took: %.3f secs" % (iters, func, end - start) was used on the python list Friday for similar testing.