def METHOD_NAME(self, context):
    results_file = context.get_artifact_path('schbench-results')
    with open(results_file) as fh:
        for line in fh:
            for label, regex in regex_map.items():
                match = regex.search(line)
                if match:
                    context.add_metric(label, float(match.group(1)),
                                       self.output_unit)