mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 10:05:29 -05:00
print database size in CoinStore benchmark (#9419)
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user