MessageDigestAlgorithmBenchmark.java | 23 import com.google.common.hash.Hashing; 37 * <li>hashMethod: how to hash the data (using the Hashing API or the MessageDigest API). 64 MD5("MD5", Hashing.md5()), 65 SHA_1("SHA-1", Hashing.sha1()), 66 SHA_256("SHA-256", Hashing.sha256()), 67 SHA_512("SHA-512", Hashing.sha512()); 97 @Benchmark byte hashing(int reps) { method in class:MessageDigestAlgorithmBenchmark
|