mdedetrich commented on PR #371:
URL: https://github.com/apache/incubator-pekko/pull/371#issuecomment-1592101904

   So here is a benchmark of the version that has no buffer to keep track of 
collisions or rollover detection
   
   ```
   [info] Benchmark                                        Mode  Cnt  Score    
Error   Units
   [info] IdGeneratorBanchmark.measureEnhancedDoubleHash  thrpt    3  1,105 ±  
1,203  ops/ns
   [info] IdGeneratorBanchmark.measureSecureRandom        thrpt    3  0,001 ±  
0,001  ops/ns
   [info] IdGeneratorBanchmark.measureThreadLocalRandom   thrpt    3  2,345 ±  
0,602  ops/ns
   ```
   
   So its significantly faster than `SecureRandom` and only approx twice as 
slow thread local random


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

To unsubscribe, e-mail: [email protected]

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