mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
Add benchmark
This commit is contained in:
parent
a72b9c9fa6
commit
36f7d2db8b
|
@ -426,8 +426,12 @@ class LegendaryCore:
|
|||
await self.egs.close_aio_session()
|
||||
return res
|
||||
|
||||
import time
|
||||
s_time = time.time()
|
||||
loop = asyncio.get_event_loop()
|
||||
results = loop.run_until_complete(fetch_remaining_infos(to_fetch))
|
||||
e_time = time.time()
|
||||
self.log.info(f'Fetched {len(results)} game infos in {e_time - s_time:.2f} seconds')
|
||||
|
||||
for res in results:
|
||||
if isinstance(res, Exception):
|
||||
|
|
Loading…
Reference in a new issue