Package br.unip.aps.benchmark
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final longAquecimento minimo por tempo usado nas execucoes completas: garante o JIT compilado antes de medir. -
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkConfig(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).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 aBenchmarkConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgoritmosrecord component.longReturns the value of theaquecimentoMsrecord component.intReturns the value of theaquecimentosrecord component.cenarios()Returns the value of thecenariosrecord component.Returns the value of thecriteriosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelimiteQuadraticorecord component.static BenchmarkConfigpadrao()Configuracao padrao do enunciado.static BenchmarkConfigrapido()Configuracao reduzida para demonstracoes rapidas e testes.intReturns the value of therepeticoesrecord component.longsemente()Returns the value of thesementerecord component.tamanhos()Returns the value of thetamanhosrecord component.final StringtoString()Returns a string representation of this record class.int
-
Field Details
-
AQUECIMENTO_MS_PADRAO
public static final long AQUECIMENTO_MS_PADRAOAquecimento 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 aBenchmarkConfigrecord class.- Parameters:
algoritmos- the value for thealgoritmosrecord componentcriterios- the value for thecriteriosrecord componenttamanhos- the value for thetamanhosrecord componentcenarios- the value for thecenariosrecord componentaquecimentos- the value for theaquecimentosrecord componentrepeticoes- the value for therepeticoesrecord componentsemente- the value for thesementerecord componentlimiteQuadratico- the value for thelimiteQuadraticorecord componentaquecimentoMs- the value for theaquecimentoMsrecord 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
Configuracao padrao do enunciado. -
rapido
Configuracao reduzida para demonstracoes rapidas e testes. -
totalCasos
public int totalCasos() -
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
algoritmos
Returns the value of thealgoritmosrecord component.- Returns:
- the value of the
algoritmosrecord component
-
criterios
Returns the value of thecriteriosrecord component.- Returns:
- the value of the
criteriosrecord component
-
tamanhos
Returns the value of thetamanhosrecord component.- Returns:
- the value of the
tamanhosrecord component
-
cenarios
Returns the value of thecenariosrecord component.- Returns:
- the value of the
cenariosrecord component
-
aquecimentos
public int aquecimentos()Returns the value of theaquecimentosrecord component.- Returns:
- the value of the
aquecimentosrecord component
-
repeticoes
public int repeticoes()Returns the value of therepeticoesrecord component.- Returns:
- the value of the
repeticoesrecord component
-
semente
public long semente()Returns the value of thesementerecord component.- Returns:
- the value of the
sementerecord component
-
limiteQuadratico
public int limiteQuadratico()Returns the value of thelimiteQuadraticorecord component.- Returns:
- the value of the
limiteQuadraticorecord component
-
aquecimentoMs
public long aquecimentoMs()Returns the value of theaquecimentoMsrecord component.- Returns:
- the value of the
aquecimentoMsrecord component
-