def _setup(): helper.connect_db(db_alias) user = helper.User.objects.first() helper.score(user, run_time) for i in range(no_of_updates): handin = helper.User.objects.first() handin.name = str(i) handin.save()
def _setup(): helper.connect_db(db_alias) user = helper.User.objects.first() for i in range(no_of_computeds): helper.simple_slow_fun(user, i) for i in range(no_of_updates): handin = helper.User.objects.first() handin.name = str(i) handin.save()
def _setup(): helper.connect_db(db_alias) user = helper.User.objects.first() for _ in range(no_of_computeds): layer_fun(user, seconds) for i in range(no_of_updates): handin = helper.User.objects.first() handin.name = str(i) handin.save()