chibenwa commented on PR #2770:
URL: https://github.com/apache/james-project/pull/2770#issuecomment-3104859163

   I played a bit around and the java code for blake 3 seems indeed to suck.
   
   I played for fun with a JNI lib https://github.com/semantalytics/BLAKE3jni
   
   Results:
   
   ```
   Blake3Bench.measure_hashing_blake3_jni          sample  1115459     8.976 ± 
0.014  us/op
   Blake3Bench.measure_hashing_sha256              sample   545709    36.512 ± 
0.042  us/op
   ```
   
   => blake3 shines
   
   However their JNI binding looks crappy and output a constant performance 
degradation over time...
   
   ```
   Iteration   1: 9.693 ±(99.9%) 0.052 us/op
                    p0.00:   5.080 us/op
                    p0.50:   8.928 us/op
                    p0.90:   12.624 us/op
                    p0.95:   14.176 us/op
                    p0.99:   18.560 us/op
                    p0.999:  32.192 us/op
                    p0.9999: 119.298 us/op
                    p1.00:   5275.648 us/op
   
   Iteration   2: 18.870 ±(99.9%) 7.045 us/op
                    p0.00:   5.008 us/op
                    p0.50:   8.992 us/op
                    p0.90:   16.384 us/op
                    p0.95:   25.856 us/op
                    p0.99:   48.768 us/op
                    p0.999:  189.400 us/op
                    p0.9999: 1657.293 us/op
                    p1.00:   533725.184 us/op
   
   Iteration   3: 64.233 ±(99.9%) 26.584 us/op
                    p0.00:   5.000 us/op
                    p0.50:   9.312 us/op
                    p0.90:   31.232 us/op
                    p0.95:   37.568 us/op
                    p0.99:   67.456 us/op
                    p0.999:  206.109 us/op
                    p0.9999: 98005.051 us/op
                    p1.00:   723517.440 us/op
   
   Iteration   4: 64.656 ±(99.9%) 21.634 us/op
                    p0.00:   4.984 us/op
                    p0.50:   11.440 us/op
                    p0.90:   35.136 us/op
                    p0.95:   41.600 us/op
                    p0.99:   60.352 us/op
                    p0.999:  364.042 us/op
                    p0.9999: 98828.288 us/op
                    p1.00:   756023.296 us/op
   
   Iteration   5: 90.474 ±(99.9%) 45.996 us/op
                    p0.00:   5.000 us/op
                    p0.50:   9.168 us/op
                    p0.90:   23.094 us/op
                    p0.95:   35.648 us/op
                    p0.99:   60.992 us/op
                    p0.999:  138.337 us/op
                    p0.9999: 196646.535 us/op
                    p1.00:   835715.072 us/op
   ```
   
   They do not even have a bug tracker for me to report it... ... ... ... ...
   
   


-- 
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: notifications-unsubscr...@james.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to