Skip to content

Commit

Permalink
undo dummy testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Scooletz committed Jul 25, 2024
1 parent 90c99b1 commit 39ad9a8
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Paprika.Tests/Store/DbTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public async Task Spin_large()
using var db = PagedDb.NativeMemoryDb(size);

const int batches = 25;
const int storageSlots = 5_000;
const int storageSlots = 10_000;
const int storageKeyLength = 32;

var value = new byte[32];
Expand All @@ -210,21 +210,13 @@ public async Task Spin_large()

var readBatches = new List<IReadOnlyBatch>();

//for (var i = 0; i < batches; i++)
for (var i = 0; i < batches; i++)
{
using var batch = db.BeginNextBatch();

for (var slot = 0; slot < storageSlots; slot++)
{
if (slot >= 4890)
Debugger.Break();

batch.SetStorage(account, GetStorageAddress(slot), value);

if (slot >= 4890)
{
batch.AssertStorageValue(account, GetStorageAddress(4890), value);
}
}

await batch.Commit(CommitOptions.FlushDataAndRoot);
Expand Down

0 comments on commit 39ad9a8

Please sign in to comment.