File tree Expand file tree Collapse file tree
src/BenchmarksApps/TechEmpower/PlatformBenchmarks/Data Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments