diff --git a/packages/store-sync/benchmarks/storageAdapter.bench.ts b/packages/store-sync/benchmarks/storageAdapter.bench.ts index 57604a8603..a599348de7 100644 --- a/packages/store-sync/benchmarks/storageAdapter.bench.ts +++ b/packages/store-sync/benchmarks/storageAdapter.bench.ts @@ -14,7 +14,6 @@ describe.each([ bench("recs: `storageAdapter`", async () => { const { storageAdapter } = createRecsStorage(); - for (const block of blocks) { await storageAdapter(block); } @@ -22,7 +21,6 @@ describe.each([ bench("zustand: `storageAdapter`", async () => { const { storageAdapter } = createZustandStorage(); - for (const block of blocks) { await storageAdapter(block); } @@ -30,7 +28,6 @@ describe.each([ bench("sqlite: `storageAdapter`", async () => { const { storageAdapter } = await createSqliteStorage(); - for (const block of blocks) { await storageAdapter(block); } diff --git a/packages/store-sync/benchmarks/storageAdapterSingleton.bench.ts b/packages/store-sync/benchmarks/storageAdapterSingleton.bench.ts index d1187181b2..d550bc734f 100644 --- a/packages/store-sync/benchmarks/storageAdapterSingleton.bench.ts +++ b/packages/store-sync/benchmarks/storageAdapterSingleton.bench.ts @@ -5,24 +5,23 @@ import worldRpcLogs from "../../../test-data/world-logs.json"; const blocks = logsToBlocks(worldRpcLogs); -const { storageAdapter: recsStorageAdapter } = createRecsStorage(); -const { storageAdapter: zustandStorageAdapter } = createZustandStorage(); -const { storageAdapter: sqliteStorageAdapter } = await createSqliteStorage(); - describe("Hydrate Storage Adapter: singleton", () => { bench("recs: `storageAdapter`", async () => { + const { storageAdapter: recsStorageAdapter } = createRecsStorage(); for (const block of blocks) { await recsStorageAdapter(block); } }); bench("zustand: `storageAdapter`", async () => { + const { storageAdapter: zustandStorageAdapter } = createZustandStorage(); for (const block of blocks) { await zustandStorageAdapter(block); } }); bench("sqlite: `storageAdapter`", async () => { + const { storageAdapter: sqliteStorageAdapter } = await createSqliteStorage(); for (const block of blocks) { await sqliteStorageAdapter(block); }