Created
August 13, 2013 17:47
-
-
Save ryanlecompte/6223733 to your computer and use it in GitHub Desktop.
md5 timing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val text = scala.util.Random.alphanumeric.take(200).mkString | |
scala> th.pbench { DigestUtils.md5Hex(text.getBytes("UTF-8")) } | |
Benchmark (5242860 calls in 7.201 s) | |
Time: 1.231 us 95% CI 1.192 us - 1.270 us (n=20) | |
Garbage: 91.17 ns (n=244 sweeps measured) | |
res8: String = ae4c94bd6787e2ba4b5402fefaf71d7d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment