b7b0af6b22296e9ced334647a3022553bd8fa459,perfkitbenchmarker/linux_packages/ior.py,,ParseMdtestResults,#Any#,97

Before Change


  Parses the test output and returns samples.
  match = re.search("Command line used: (.*)", test_output)
  command_line = match.group(1)
  match = re.search(r"(\d+) tasks, (\d+) files/directories", test_output)
  num_tasks, num_files = match.groups()
  metadata = {
      "command_line": command_line, "num_tasks": num_tasks,
      "num_files": num_files
  }

After Change


      op_type, max_ops, min_ops, mean_ops, std_dev = result_line
      if not float(mean_ops):
        continue
      results.append(sample.Sample(
          op_type + " (Mean)", float(mean_ops), "OPs/s", metadata))
      if float(std_dev):
        results.extend([
            sample.Sample(
                op_type + " (Max)", float(max_ops), "OPs/s", metadata),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: b7b0af6b22296e9ced334647a3022553bd8fa459
Time: 2018-06-11
Author: ehankland@google.com
File Name: perfkitbenchmarker/linux_packages/ior.py
Class Name:
Method Name: ParseMdtestResults


Project Name: CellProfiler/CellProfiler
Commit Name: fe6d70a51d1a575313906708cf4bcda767b11d07
Time: 2010-09-20
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/measurements.py
Class Name: Measurements
Method Name: apply_metadata


Project Name: CellProfiler/CellProfiler
Commit Name: a0f1f391dfe4448067ce7f0f795142a5f5c41661
Time: 2010-05-12
Author: thouis@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/measurements.py
Class Name:
Method Name: find_metadata_tokens