def step4(self): delta = time.time() for guild in self.bot.guilds: data = guildreader.read_file(guild.id, "test") assert data["A"] == 80 assert data["B"] == [1, 2, 3, 4, 5, 6, 8, 9, 10] print(f'Full Reread Time: {time.time()-delta} seconds...')
def step7(self): delta = time.time() data = guildreader.read_file(self.bot.guilds[0].id, "test") data["A"] = 80 data["B"] = [1, 2, 3, 4, 5, 6, 8, 9, 10] guildreader.write_file(self.bot.guilds[0].id, "test", data) print(f'Single Write Time: {time.time() - delta} seconds...')
def step3(self): delta = time.time() for guild in self.bot.guilds: data = guildreader.read_file(guild.id, "test") data["A"] = 80 data["B"] = [1, 2, 3, 4, 5, 6, 8, 9, 10] guildreader.write_file(guild.id, "test", data) print(f'Full Write Time: {time.time()-delta} seconds...')
def step4(self): for guild in self.bot.guilds: data = guildreader.read_file(guild.id, "test") assert data == "rewrite"
def step8(self): delta = time.time() data = guildreader.read_file(self.bot.guilds[0].id, "test") assert data["A"] == 80 assert data["B"] == [1, 2, 3, 4, 5, 6, 8, 9, 10] print(f'Single Reread Time: {time.time() - delta} seconds...')