def prepare(self): # Update 20 data entries self.update_range = get_random_data_slice(DATA_SIZE, 20.0 / DATA_SIZE) self.arguments = [(i, random.random()) for i in xrange(*self.update_range)]
def prepare(self): #getting 10 percent of data self.arguments = get_random_data_slice(DATA_SIZE, 0.1)
def prepare(self): # get 0.1% of data self.arguments = get_random_data_slice(DATA_SIZE, 0.001)
def prepare(self): #Changing the parameters of the query based on the trial size. self.arguments = get_random_data_slice(DATA_SIZE, 0.001)