Record Class BenchmarkResult
java.lang.Object
java.lang.Record
org.episteme.benchmarks.benchmark.BenchmarkResult
public record BenchmarkResult(String benchmarkId, String benchmarkName, String provider, String domain, String status, long timestamp, long totalTimeMillis, long iterations, double averageTimePerOpMillis, double operationsPerSecond, long memoryUsedBytes, Map<String,String> environmentInfo, Map<String,Object> extraMetrics)
extends Record
Captures the performance metrics of a single benchmark run.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkResult(String name, String provider, String domain, double latencyMs) BenchmarkResult(String benchmarkId, String benchmarkName, String provider, String domain, long totalTimeMillis, long iterations, double averageTimePerOpMillis, double operationsPerSecond, long memoryUsedBytes, Map<String, Object> extraMetrics) BenchmarkResult(String benchmarkId, String benchmarkName, String provider, String domain, String status, long timestamp, long totalTimeMillis, long iterations, double averageTimePerOpMillis, double operationsPerSecond, long memoryUsedBytes, Map<String, String> environmentInfo, Map<String, Object> extraMetrics) Creates an instance of aBenchmarkResultrecord class.Convenience constructor for expanded results (e.g. from High-Precision Audit). -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theaverageTimePerOpMillisrecord component.Returns the value of thebenchmarkIdrecord component.Returns the value of thebenchmarkNamerecord component.domain()Returns the value of thedomainrecord component.Returns the value of theenvironmentInforecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextraMetricsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theiterationsrecord component.longReturns the value of thememoryUsedBytesrecord component.doubleReturns the value of theoperationsPerSecondrecord component.provider()Returns the value of theproviderrecord component.status()Returns the value of thestatusrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalTimeMillisrecord component.
-
Constructor Details
-
BenchmarkResult
-
BenchmarkResult
-
BenchmarkResult
-
BenchmarkResult
public BenchmarkResult(String benchmarkId, String benchmarkName, String provider, String domain, String status, long timestamp, long totalTimeMillis, long iterations, double averageTimePerOpMillis, double operationsPerSecond, long memoryUsedBytes, Map<String, String> environmentInfo, Map<String, Object> extraMetrics) Creates an instance of aBenchmarkResultrecord class.- Parameters:
benchmarkId- the value for thebenchmarkIdrecord componentbenchmarkName- the value for thebenchmarkNamerecord componentprovider- the value for theproviderrecord componentdomain- the value for thedomainrecord componentstatus- the value for thestatusrecord componenttimestamp- the value for thetimestamprecord componenttotalTimeMillis- the value for thetotalTimeMillisrecord componentiterations- the value for theiterationsrecord componentaverageTimePerOpMillis- the value for theaverageTimePerOpMillisrecord componentoperationsPerSecond- the value for theoperationsPerSecondrecord componentmemoryUsedBytes- the value for thememoryUsedBytesrecord componentenvironmentInfo- the value for theenvironmentInforecord componentextraMetrics- the value for theextraMetricsrecord component
-
-
Method Details
-
toSummaryString
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
benchmarkId
Returns the value of thebenchmarkIdrecord component.- Returns:
- the value of the
benchmarkIdrecord component
-
benchmarkName
Returns the value of thebenchmarkNamerecord component.- Returns:
- the value of the
benchmarkNamerecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
totalTimeMillis
public long totalTimeMillis()Returns the value of thetotalTimeMillisrecord component.- Returns:
- the value of the
totalTimeMillisrecord component
-
iterations
public long iterations()Returns the value of theiterationsrecord component.- Returns:
- the value of the
iterationsrecord component
-
averageTimePerOpMillis
public double averageTimePerOpMillis()Returns the value of theaverageTimePerOpMillisrecord component.- Returns:
- the value of the
averageTimePerOpMillisrecord component
-
operationsPerSecond
public double operationsPerSecond()Returns the value of theoperationsPerSecondrecord component.- Returns:
- the value of the
operationsPerSecondrecord component
-
memoryUsedBytes
public long memoryUsedBytes()Returns the value of thememoryUsedBytesrecord component.- Returns:
- the value of the
memoryUsedBytesrecord component
-
environmentInfo
-
extraMetrics
-