def getMXQueue(self, number, element): '''Prepare a MX queue with number elements. It is not part oc the speed measurements.''' print ("preparing Queue") queue=mx_queue() for _ in range(number): queue.push(element) print ("Done") return queue
def __init__(self, number=1000000): self.mx_queue = mx_queue() self.mx_stack = mx_stack() self.python_queue = python_queue() self.deque = deque() self.number = number
def __init__(self, number=1000000): self.mx_queue = mx_queue() self.mx_stack = mx_stack() self.python_queue = python_queue() self.deque = deque() self.number=number