Class HashBenchmark.MyState

java.lang.Object
app.keve.ktlsh.benchmarks.HashBenchmark.MyState
Enclosing class:
HashBenchmark

public static class HashBenchmark.MyState
extends java.lang.Object
The state class of the benchmarks holding the buffers.
Author:
keve
  • Constructor Summary

    Constructors 
    Constructor Description
    MyState()  
  • Method Summary

    Modifier and Type Method Description
    byte[] getHugeBuf1GiB()
    Getter for huge buffer.
    byte[] getLargeBuf16MiB()
    Getter for large buffer.
    byte[] getSmallBuf32KiB()
    Getter for small buffer.
    void init()
    Initialise the state class members.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • init

      public void init() throws java.security.NoSuchAlgorithmException
      Initialise the state class members.
      Throws:
      java.security.NoSuchAlgorithmException - if TLSH algorithm cannot be found.
    • getSmallBuf32KiB

      public byte[] getSmallBuf32KiB()
      Getter for small buffer.
      Returns:
      the buffer
    • getLargeBuf16MiB

      public byte[] getLargeBuf16MiB()
      Getter for large buffer.
      Returns:
      the buffer
    • getHugeBuf1GiB

      public byte[] getHugeBuf1GiB()
      Getter for huge buffer.
      Returns:
      the buffer