Record Class BenchmarkMetrics
java.lang.Object
java.lang.Record
de.cuioss.benchmarking.common.report.BenchmarkMetrics
public record BenchmarkMetrics(String throughputBenchmarkName, String latencyBenchmarkName, double throughput, double latency, double performanceScore, String performanceGrade)
extends Record
Immutable record containing all computed benchmark metrics.
This is the central data structure shared across all report generators.
-
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkMetrics(String throughputBenchmarkName, String latencyBenchmarkName, double throughput, double latency, double performanceScore, String performanceGrade) Creates an instance of aBenchmarkMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublelatency()Returns the value of thelatencyrecord component.Returns the value of thelatencyBenchmarkNamerecord component.Returns the value of theperformanceGraderecord component.doubleReturns the value of theperformanceScorerecord component.doubleReturns the value of thethroughputrecord component.Returns the value of thethroughputBenchmarkNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BenchmarkMetrics
public BenchmarkMetrics(String throughputBenchmarkName, String latencyBenchmarkName, double throughput, double latency, double performanceScore, String performanceGrade) Creates an instance of aBenchmarkMetricsrecord class.- Parameters:
throughputBenchmarkName- the value for thethroughputBenchmarkNamerecord componentlatencyBenchmarkName- the value for thelatencyBenchmarkNamerecord componentthroughput- the value for thethroughputrecord componentlatency- the value for thelatencyrecord componentperformanceScore- the value for theperformanceScorerecord componentperformanceGrade- the value for theperformanceGraderecord component
-
-
Method Details
-
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
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 '=='. -
throughputBenchmarkName
Returns the value of thethroughputBenchmarkNamerecord component.- Returns:
- the value of the
throughputBenchmarkNamerecord component
-
latencyBenchmarkName
Returns the value of thelatencyBenchmarkNamerecord component.- Returns:
- the value of the
latencyBenchmarkNamerecord component
-
throughput
Returns the value of thethroughputrecord component.- Returns:
- the value of the
throughputrecord component
-
latency
Returns the value of thelatencyrecord component.- Returns:
- the value of the
latencyrecord component
-
performanceScore
Returns the value of theperformanceScorerecord component.- Returns:
- the value of the
performanceScorerecord component
-
performanceGrade
Returns the value of theperformanceGraderecord component.- Returns:
- the value of the
performanceGraderecord component
-