java.lang.Object
app.keve.ktlsh.benchmarks.HashBenchmark
public class HashBenchmark
extends java.lang.Object
Hash benchmarks.
- Author:
- keve
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHashBenchmark.MyStateThe state class of the benchmarks holding the buffers. -
Constructor Summary
Constructors Constructor Description HashBenchmark() -
Method Summary
Modifier and Type Method Description voidtestKLarge16MiB(HashBenchmark.MyState state)Benchmark hash with K implementation, 16MiB buffer.voidtestKSmall32KiB(HashBenchmark.MyState state)Benchmark hash with K implementation, 32KiB buffer.voidtestMD5Large16MiB(HashBenchmark.MyState state)Benchmark MD5 hash, 16MiB buffer.voidtestMD5Small32KiB(HashBenchmark.MyState state)Benchmark MD5 hash, 32KiB buffer.voidtestTMLarge16MiB(HashBenchmark.MyState state)Benchmark hash with TM implementation, 16MiB buffer.voidtestTMSmall32KiB(HashBenchmark.MyState state)Benchmark hash with TM implementation, 32KiB buffer.
-
Constructor Details
-
HashBenchmark
public HashBenchmark()
-
-
Method Details
-
testTMSmall32KiB
public void testTMSmall32KiB(HashBenchmark.MyState state) throws java.security.GeneralSecurityExceptionBenchmark hash with TM implementation, 32KiB buffer.- Parameters:
state- the state- Throws:
java.security.GeneralSecurityException- algorithms are not found
-
testKSmall32KiB
public void testKSmall32KiB(HashBenchmark.MyState state) throws java.security.GeneralSecurityExceptionBenchmark hash with K implementation, 32KiB buffer.- Parameters:
state- the state- Throws:
java.security.GeneralSecurityException- algorithms are not found
-
testMD5Small32KiB
public void testMD5Small32KiB(HashBenchmark.MyState state) throws java.security.GeneralSecurityExceptionBenchmark MD5 hash, 32KiB buffer.- Parameters:
state- the state- Throws:
java.security.GeneralSecurityException- algorithms are not found
-
testTMLarge16MiB
public void testTMLarge16MiB(HashBenchmark.MyState state) throws java.security.GeneralSecurityExceptionBenchmark hash with TM implementation, 16MiB buffer.- Parameters:
state- the state- Throws:
java.security.GeneralSecurityException- algorithms are not found
-
testKLarge16MiB
public void testKLarge16MiB(HashBenchmark.MyState state) throws java.security.GeneralSecurityExceptionBenchmark hash with K implementation, 16MiB buffer.- Parameters:
state- the state- Throws:
java.security.GeneralSecurityException- algorithms are not found
-
testMD5Large16MiB
public void testMD5Large16MiB(HashBenchmark.MyState state) throws java.security.GeneralSecurityExceptionBenchmark MD5 hash, 16MiB buffer.- Parameters:
state- the state- Throws:
java.security.GeneralSecurityException- algorithms are not found
-