Class JMH_LabeledOperationResultSerializer
java.lang.Object
runners.jmh.serializers.JMH_LabeledOperationResultSerializer
Configuration input (4) of B-Runner is the measures taken during a test.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<List<List<ITaskResult>>> deserializeTrialResultFromDirectory(String directoryPath) Deserializes a multiple result lists from a directory.static List<ITaskResult> deserializeTrialResultFromFile(String filePath) Deserializes a result list.static voidserializeMeasureList(List<ITaskResult> resultsToSerialize, String filePath) Serializes a result list as java object.
-
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 serializefilePath- to write- Throws:
IOException
-
deserializeTrialResultFromFile
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
-