Package com.streamconverter.benchmark
Class ResourceUsage
java.lang.Object
com.streamconverter.benchmark.ResourceUsage
リソース使用量の測定結果を表すクラス
メモリ使用量、処理時間、スループットなどのパフォーマンス指標を保持します。 5GBデータ/50MBメモリ目標の評価に使用されます。
-
Constructor Summary
ConstructorsConstructorDescriptionResourceUsage
(long durationMillis, long memoryUsedBytes, long peakMemoryBytes, long startMemoryBytes, long endMemoryBytes, long dataSizeBytes, double throughputMBps, Instant measurementTime) リソース使用量結果を構築します -
Method Summary
Modifier and TypeMethodDescriptionlong
処理したデータサイズを取得(バイト)double
処理したデータサイズを取得(MB)long
処理時間を取得(ミリ秒)long
終了時メモリ使用量を取得(バイト)測定時刻を取得double
メモリ効率性(データサイズに対するメモリ使用率)を計算long
使用メモリ量を取得(バイト)double
使用メモリ量を取得(MB)long
ピークメモリ使用量を取得(バイト)double
ピークメモリ使用量を取得(MB)long
開始時メモリ使用量を取得(バイト)double
スループットを取得(MB/秒)boolean
5GBデータ/50MBメモリ目標を満たしているかを確認toString()
-
Constructor Details
-
ResourceUsage
public ResourceUsage(long durationMillis, long memoryUsedBytes, long peakMemoryBytes, long startMemoryBytes, long endMemoryBytes, long dataSizeBytes, double throughputMBps, Instant measurementTime) リソース使用量結果を構築します- Parameters:
durationMillis
- 処理時間(ミリ秒)memoryUsedBytes
- 使用メモリ量(バイト)peakMemoryBytes
- ピークメモリ使用量(バイト)startMemoryBytes
- 開始時メモリ使用量(バイト)endMemoryBytes
- 終了時メモリ使用量(バイト)dataSizeBytes
- 処理したデータサイズ(バイト)throughputMBps
- スループット(MB/秒)measurementTime
- 測定時刻
-
-
Method Details
-
getDurationMillis
処理時間を取得(ミリ秒)- Returns:
- 処理時間
-
getMemoryUsedBytes
使用メモリ量を取得(バイト)- Returns:
- 使用メモリ量
-
getMemoryUsedMB
使用メモリ量を取得(MB)- Returns:
- 使用メモリ量(MB)
-
getPeakMemoryBytes
ピークメモリ使用量を取得(バイト)- Returns:
- ピークメモリ使用量
-
getPeakMemoryMB
ピークメモリ使用量を取得(MB)- Returns:
- ピークメモリ使用量(MB)
-
getStartMemoryBytes
開始時メモリ使用量を取得(バイト)- Returns:
- 開始時メモリ使用量
-
getEndMemoryBytes
終了時メモリ使用量を取得(バイト)- Returns:
- 終了時メモリ使用量
-
getDataSizeBytes
処理したデータサイズを取得(バイト)- Returns:
- データサイズ
-
getDataSizeMB
処理したデータサイズを取得(MB)- Returns:
- データサイズ(MB)
-
getThroughputMBps
スループットを取得(MB/秒)- Returns:
- スループット
-
getMeasurementTime
測定時刻を取得- Returns:
- 測定時刻
-
meets5GB50MBTarget
5GBデータ/50MBメモリ目標を満たしているかを確認- Returns:
- 目標を満たしている場合true
-
getMemoryEfficiency
メモリ効率性(データサイズに対するメモリ使用率)を計算- Returns:
- メモリ効率性(0.0-1.0、低いほど効率的)
-
toString
-