jackjlli commented on issue #4568: Replace Hashmap to Object2IntOpenHashMap in 
OnHeapStringDictionary
URL: https://github.com/apache/incubator-pinot/pull/4568#issuecomment-526404735
 
 
   Here are the results by using offheap dictionary, onheap dictionary with 
HashMap, and onheap dictionary with Object2IntOpenHashMap:
   offheap:
   ```
   Total time: 12389
   Total time for 10000000 lookups: 15996ms
   
DictSize,TimeTaken(ms),SegmentSize,NumLookups,Min,Max,Mean,StdDev,Median,Skewness,Kurtosis,Variance,BufferSize
   1000000,15996,514501118,10000000,1000.0,1000.0,1000.0,0.0,1000.0,NaN,NaN,0.0
   Process finished with exit code 0
   ```
   onheap with HashMap:
   ```
   Total time: 12250
   Total time for 10000000 lookups: 237ms
   
DictSize,TimeTaken(ms),SegmentSize,NumLookups,Min,Max,Mean,StdDev,Median,Skewness,Kurtosis,Variance,BufferSize
   1000000,237,514501118,10000000,1000.0,1000.0,1000.0,0.0,1000.0,NaN,NaN,0.0
   Process finished with exit code 0
   ```
   onheap with Object2IntOpenHashMap:
   ```
   Total time: 12187
   Total time for 10000000 lookups: 242ms
   
DictSize,TimeTaken(ms),SegmentSize,NumLookups,Min,Max,Mean,StdDev,Median,Skewness,Kurtosis,Variance,BufferSize
   1000000,242,514501118,10000000,1000.0,1000.0,1000.0,0.0,1000.0,NaN,NaN,0.0
   Process finished with exit code 0
   ```
   As the results shows, there's no big difference on dictionary lookup between 
using these two hash maps.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

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

Reply via email to