Class ResourceUsage

java.lang.Object
com.streamconverter.benchmark.ResourceUsage

public class ResourceUsage extends Object
リソース使用量の測定結果を表すクラス

メモリ使用量、処理時間、スループットなどのパフォーマンス指標を保持します。 5GBデータ/50MBメモリ目標の評価に使用されます。

  • 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

      public long getDurationMillis()
      処理時間を取得(ミリ秒)
      Returns:
      処理時間
    • getMemoryUsedBytes

      public long getMemoryUsedBytes()
      使用メモリ量を取得(バイト)
      Returns:
      使用メモリ量
    • getMemoryUsedMB

      public double getMemoryUsedMB()
      使用メモリ量を取得(MB)
      Returns:
      使用メモリ量(MB)
    • getPeakMemoryBytes

      public long getPeakMemoryBytes()
      ピークメモリ使用量を取得(バイト)
      Returns:
      ピークメモリ使用量
    • getPeakMemoryMB

      public double getPeakMemoryMB()
      ピークメモリ使用量を取得(MB)
      Returns:
      ピークメモリ使用量(MB)
    • getStartMemoryBytes

      public long getStartMemoryBytes()
      開始時メモリ使用量を取得(バイト)
      Returns:
      開始時メモリ使用量
    • getEndMemoryBytes

      public long getEndMemoryBytes()
      終了時メモリ使用量を取得(バイト)
      Returns:
      終了時メモリ使用量
    • getDataSizeBytes

      public long getDataSizeBytes()
      処理したデータサイズを取得(バイト)
      Returns:
      データサイズ
    • getDataSizeMB

      public double getDataSizeMB()
      処理したデータサイズを取得(MB)
      Returns:
      データサイズ(MB)
    • getThroughputMBps

      public double getThroughputMBps()
      スループットを取得(MB/秒)
      Returns:
      スループット
    • getMeasurementTime

      測定時刻を取得
      Returns:
      測定時刻
    • meets5GB50MBTarget

      public boolean meets5GB50MBTarget()
      5GBデータ/50MBメモリ目標を満たしているかを確認
      Returns:
      目標を満たしている場合true
    • getMemoryEfficiency

      public double getMemoryEfficiency()
      メモリ効率性(データサイズに対するメモリ使用率)を計算
      Returns:
      メモリ効率性(0.0-1.0、低いほど効率的)
    • toString

      public String toString()
      Overrides:
      toString in class Object