himanshug opened a new pull request #10604:
URL: https://github.com/apache/druid/pull/10604


   wrote to get some numbers for the discussion in #10287
   
   On my laptop (I know its not perfect, but gives an idea for the discussion 
above)..
   
   ```
   Benchmark                                                                   
(numDataSources)  (numSegmentPerDataSource)  Mode  Cnt         Score        
Error  Units
   DataSourcesSnapshotBenchmark.iterateUsing_forloops                           
            500                       1000    ss   50   4232403.460 ± 
219765.673  ns/op
   DataSourcesSnapshotBenchmark.iterateUsing_forloops                           
            500                       2000    ss   50   8659380.560 ± 
185390.719  ns/op
   DataSourcesSnapshotBenchmark.iterateUsing_forloops                           
           1000                       1000    ss   50   9013917.980 ± 
188947.989  ns/op
   DataSourcesSnapshotBenchmark.iterateUsing_forloops                           
           1000                       2000    ss   50  17031865.840 ± 
211728.709  ns/op
   DataSourcesSnapshotBenchmark.iterateUsing_iterateAllUsedSegmentsInSnapshot   
            500                       1000    ss   50  12191110.300 ± 
112767.069  ns/op
   DataSourcesSnapshotBenchmark.iterateUsing_iterateAllUsedSegmentsInSnapshot   
            500                       2000    ss   50  25415400.500 ±  
94122.833  ns/op
   DataSourcesSnapshotBenchmark.iterateUsing_iterateAllUsedSegmentsInSnapshot   
           1000                       1000    ss   50  24639497.460 ± 
142729.255  ns/op
   DataSourcesSnapshotBenchmark.iterateUsing_iterateAllUsedSegmentsInSnapshot   
           1000                       2000    ss   50  53371752.960 ± 
395712.839  ns/op
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to