Class JMH_LabeledOperationResultSerializer

java.lang.Object
runners.jmh.serializers.JMH_LabeledOperationResultSerializer

public class JMH_LabeledOperationResultSerializer extends Object
Configuration input (4) of B-Runner is the measures taken during a test.
  • Constructor Details

    • JMH_LabeledOperationResultSerializer

      public JMH_LabeledOperationResultSerializer()
  • Method Details

    • serializeMeasureList

      public static void serializeMeasureList(List<ITaskResult> resultsToSerialize, String filePath) throws IOException
      Serializes a result list as java object.
      Parameters:
      resultsToSerialize - to serialize
      filePath - to write
      Throws:
      IOException
    • deserializeTrialResultFromFile

      public static List<ITaskResult> deserializeTrialResultFromFile(String filePath) throws Exception
      Deserializes a result list.
      Parameters:
      filePath - to read
      Returns:
      the result list
      Throws:
      Exception
    • deserializeTrialResultFromDirectory

      public static List<List<List<ITaskResult>>> deserializeTrialResultFromDirectory(String directoryPath) throws Exception
      Deserializes a multiple result lists from a directory.
      Parameters:
      directoryPath - where the result list objects are
      Returns:
      the list of results structured by fork (level 1) and then by iteration (level 2)
      Throws:
      Exception