Package br.unip.aps.benchmark
Record Class BenchmarkResult
java.lang.Object
java.lang.Record
br.unip.aps.benchmark.BenchmarkResult
public record BenchmarkResult(String algoritmo, CriterioOrdenacao criterio, CenarioEntrada cenario, int n, int repeticoes, double mediaNs, double desvioNs, long minNs, long maxNs, long comparacoes, long trocas, long atribuicoes, long acessos, boolean verificado)
extends Record
Medicao de um caso do benchmark (um algoritmo, um criterio, um cenario, um tamanho).
-
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkResult(String algoritmo, CriterioOrdenacao criterio, CenarioEntrada cenario, int n, int repeticoes, double mediaNs, double desvioNs, long minNs, long maxNs, long comparacoes, long trocas, long atribuicoes, long acessos, boolean verificado) Creates an instance of aBenchmarkResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongacessos()Returns the value of theacessosrecord component.Returns the value of thealgoritmorecord component.longReturns the value of theatribuicoesrecord component.cenario()Returns the value of thecenariorecord component.doublelongReturns the value of thecomparacoesrecord component.criterio()Returns the value of thecriteriorecord component.doubledesvioMs()doubledesvioNs()Returns the value of thedesvioNsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longmaxNs()Returns the value of themaxNsrecord component.doublemediaMs()doublemediaNs()Returns the value of themediaNsrecord component.longminNs()Returns the value of theminNsrecord component.intn()Returns the value of thenrecord component.doubledoubleintReturns the value of therepeticoesrecord component.final StringtoString()Returns a string representation of this record class.longtrocas()Returns the value of thetrocasrecord component.booleanReturns the value of theverificadorecord component.
-
Constructor Details
-
BenchmarkResult
public BenchmarkResult(String algoritmo, CriterioOrdenacao criterio, CenarioEntrada cenario, int n, int repeticoes, double mediaNs, double desvioNs, long minNs, long maxNs, long comparacoes, long trocas, long atribuicoes, long acessos, boolean verificado) Creates an instance of aBenchmarkResultrecord class.- Parameters:
algoritmo- the value for thealgoritmorecord componentcriterio- the value for thecriteriorecord componentcenario- the value for thecenariorecord componentn- the value for thenrecord componentrepeticoes- the value for therepeticoesrecord componentmediaNs- the value for themediaNsrecord componentdesvioNs- the value for thedesvioNsrecord componentminNs- the value for theminNsrecord componentmaxNs- the value for themaxNsrecord componentcomparacoes- the value for thecomparacoesrecord componenttrocas- the value for thetrocasrecord componentatribuicoes- the value for theatribuicoesrecord componentacessos- the value for theacessosrecord componentverificado- the value for theverificadorecord component
-
-
Method Details
-
mediaMs
public double mediaMs() -
desvioMs
public double desvioMs() -
coeficienteVariacao
public double coeficienteVariacao() -
referenciaNLogN
public double referenciaNLogN() -
referenciaN2
public double referenciaN2() -
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 '=='. -
algoritmo
Returns the value of thealgoritmorecord component.- Returns:
- the value of the
algoritmorecord component
-
criterio
Returns the value of thecriteriorecord component.- Returns:
- the value of the
criteriorecord component
-
cenario
Returns the value of thecenariorecord component.- Returns:
- the value of the
cenariorecord component
-
n
public int n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-
repeticoes
public int repeticoes()Returns the value of therepeticoesrecord component.- Returns:
- the value of the
repeticoesrecord component
-
mediaNs
public double mediaNs()Returns the value of themediaNsrecord component.- Returns:
- the value of the
mediaNsrecord component
-
desvioNs
public double desvioNs()Returns the value of thedesvioNsrecord component.- Returns:
- the value of the
desvioNsrecord component
-
minNs
public long minNs()Returns the value of theminNsrecord component.- Returns:
- the value of the
minNsrecord component
-
maxNs
public long maxNs()Returns the value of themaxNsrecord component.- Returns:
- the value of the
maxNsrecord component
-
comparacoes
public long comparacoes()Returns the value of thecomparacoesrecord component.- Returns:
- the value of the
comparacoesrecord component
-
trocas
public long trocas()Returns the value of thetrocasrecord component.- Returns:
- the value of the
trocasrecord component
-
atribuicoes
public long atribuicoes()Returns the value of theatribuicoesrecord component.- Returns:
- the value of the
atribuicoesrecord component
-
acessos
public long acessos()Returns the value of theacessosrecord component.- Returns:
- the value of the
acessosrecord component
-
verificado
public boolean verificado()Returns the value of theverificadorecord component.- Returns:
- the value of the
verificadorecord component
-