Package org.drasyl

Class AbstractBenchmark

java.lang.Object
org.drasyl.AbstractBenchmark
Direct Known Subclasses:
ApplicationMessageBenchmark, ArmedProtocolMessageBenchmark, ByteToRemoteMessageCodecBenchmark, DrasylNodeIntraVmDiscoveryBenchmark, DrasylNodeRemoteBenchmark, EncryptionBenchmark, ExpiringMapBenchmark, ExpiringSetBenchmark, FullReadMessageBenchmark, HexUtilBenchmark, IdentityManagerBenchmark, IdentityPublicKeyBenchmark, InetSocketAddressBenchmark, InternetDiscoveryChildrenHandlerBenchmark, InvalidProofOfWorkFilterBenchmark, JacksonJsonSerializerBenchmark, KeyGenBenchmark, LoggerBenchmark, NetworkUtilBenchmark, NonceBenchmark, NumberUtilBenchmark, OtherNetworkFilterBenchmark, PartialReadMessageBenchmark, ProofOfWorkBenchmark, ProofOfWorkGenerationBenchmark, ProtocolArmHandlerBenchmark, RandomBenchmark, RandomUtilBenchmark, SerializationBenchmark, SignBenchmark, StringSerializerBenchmark, SuperPeerStressTesting, UdpServerBenchmark, UnarmedMessageDecoderBenchmark, UnconfirmedAddressResolveHandlerBenchmark

public abstract class AbstractBenchmark extends Object
  • Field Details

    • DEFAULT_FORKS

      protected static final int DEFAULT_FORKS
      See Also:
    • DEFAULT_WARMUP_ITERATIONS

      protected static final int DEFAULT_WARMUP_ITERATIONS
      See Also:
    • DEFAULT_MEASURE_ITERATIONS

      protected static final int DEFAULT_MEASURE_ITERATIONS
      See Also:
    • BASE_JVM_ARGS

      protected static final String[] BASE_JVM_ARGS
  • Constructor Details

    • AbstractBenchmark

      public AbstractBenchmark()
  • Method Details

    • newOptionsBuilder

      protected org.openjdk.jmh.runner.options.ChainedOptionsBuilder newOptionsBuilder() throws IOException
      Throws:
      IOException
    • jvmArgs

      protected String[] jvmArgs()
    • getForks

      protected int getForks()
    • getWarmupIterations

      protected int getWarmupIterations()
    • getMeasureIterations

      protected int getMeasureIterations()
    • getTimeout

      protected int getTimeout()
    • getReportDir

      protected String getReportDir()
    • handleUnexpectedException

      public static void handleUnexpectedException(Throwable t)