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