Skip to content

Commit c6f75fb

Browse files
committed
Fix build
1 parent 96b4b4d commit c6f75fb

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • src/BenchmarksApps/TechEmpower/PlatformBenchmarks/Data

src/BenchmarksApps/TechEmpower/PlatformBenchmarks/Data/RawDb.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ public async Task<World[]> LoadMultipleUpdatesRows(int count)
174174
{
175175
var results = new World[count];
176176

177+
var ids = new int[count];
178+
for (var i = 0; i < count; i++)
179+
{
180+
ids[i] = Random.Shared.Next(1, 10001);
181+
}
182+
Array.Sort(ids);
183+
177184
using var connection = CreateConnection();
178185
await connection.OpenAsync();
179186

@@ -183,13 +190,6 @@ public async Task<World[]> LoadMultipleUpdatesRows(int count)
183190
// TechEmpower general test requirement 7
184191
// https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview
185192
batch.EnableErrorBarriers = true;
186-
187-
var ids = new int[count];
188-
for (var i = 0; i < count; i++)
189-
{
190-
ids[i] = Random.Shared.Next(1, 10001);
191-
}
192-
Array.Sort(ids);
193193

194194
for (var i = 0; i < count; i++)
195195
{

0 commit comments

Comments
 (0)