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 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
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
-