print database size in CoinStore benchmark (#9419)

This commit is contained in:
Arvid Norberg
2021-11-29 07:48:42 -08:00
committed by GitHub
parent 025c45f0b5
commit 7f2be11da7
+3
View File
@@ -351,6 +351,9 @@ async def run_new_block_benchmark():
finally:
await db_wrapper.db.close()
db_size = os.path.getsize(Path("coin-store-benchmark.db"))
print(f"database size: {db_size/1000000:.3} MB")
if __name__ == "__main__":
asyncio.run(run_new_block_benchmark())