Record Class BenchmarkConfig

java.lang.Object
java.lang.Record
br.unip.aps.benchmark.BenchmarkConfig

public record BenchmarkConfig(List<AlgoritmoTipo> algoritmos, List<CriterioOrdenacao> criterios, List<Integer> tamanhos, List<CenarioEntrada> cenarios, int aquecimentos, int repeticoes, long semente, int limiteQuadratico, long aquecimentoMs) extends Record
Parametros de uma bateria de benchmark.
  • Field Details

    • AQUECIMENTO_MS_PADRAO

      public static final long AQUECIMENTO_MS_PADRAO
      Aquecimento minimo por tempo usado nas execucoes completas: garante o JIT compilado antes de medir.
      See Also:
  • Constructor Details

    • BenchmarkConfig

      public BenchmarkConfig(List<AlgoritmoTipo> algoritmos, List<CriterioOrdenacao> criterios, List<Integer> tamanhos, List<CenarioEntrada> cenarios, int aquecimentos, int repeticoes, long semente, int limiteQuadratico, long aquecimentoMs)
      Creates an instance of a BenchmarkConfig record class.
      Parameters:
      algoritmos - the value for the algoritmos record component
      criterios - the value for the criterios record component
      tamanhos - the value for the tamanhos record component
      cenarios - the value for the cenarios record component
      aquecimentos - the value for the aquecimentos record component
      repeticoes - the value for the repeticoes record component
      semente - the value for the semente record component
      limiteQuadratico - the value for the limiteQuadratico record component
      aquecimentoMs - the value for the aquecimentoMs record component
    • BenchmarkConfig

      public BenchmarkConfig(List<AlgoritmoTipo> algoritmos, List<CriterioOrdenacao> criterios, List<Integer> tamanhos, List<CenarioEntrada> cenarios, int aquecimentos, int repeticoes, long semente, int limiteQuadratico)
      Configuracao so com aquecimento por contagem (sem tempo minimo).
  • Method Details

    • padrao

      public static BenchmarkConfig padrao()
      Configuracao padrao do enunciado.
    • rapido

      public static BenchmarkConfig rapido()
      Configuracao reduzida para demonstracoes rapidas e testes.
    • totalCasos

      public int totalCasos()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • algoritmos

      public List<AlgoritmoTipo> algoritmos()
      Returns the value of the algoritmos record component.
      Returns:
      the value of the algoritmos record component
    • criterios

      public List<CriterioOrdenacao> criterios()
      Returns the value of the criterios record component.
      Returns:
      the value of the criterios record component
    • tamanhos

      public List<Integer> tamanhos()
      Returns the value of the tamanhos record component.
      Returns:
      the value of the tamanhos record component
    • cenarios

      public List<CenarioEntrada> cenarios()
      Returns the value of the cenarios record component.
      Returns:
      the value of the cenarios record component
    • aquecimentos

      public int aquecimentos()
      Returns the value of the aquecimentos record component.
      Returns:
      the value of the aquecimentos record component
    • repeticoes

      public int repeticoes()
      Returns the value of the repeticoes record component.
      Returns:
      the value of the repeticoes record component
    • semente

      public long semente()
      Returns the value of the semente record component.
      Returns:
      the value of the semente record component
    • limiteQuadratico

      public int limiteQuadratico()
      Returns the value of the limiteQuadratico record component.
      Returns:
      the value of the limiteQuadratico record component
    • aquecimentoMs

      public long aquecimentoMs()
      Returns the value of the aquecimentoMs record component.
      Returns:
      the value of the aquecimentoMs record component