-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoremark.py
31 lines (26 loc) · 1.41 KB
/
coremark.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import matplotlib.pyplot as plt
import pandas as pd
import re
from pathlib import Path
import numpy as np
import io
from plot import *
def extract_iterations_per_second(file_path):
with open(file_path, 'r') as file:
lines = file.readlines()
return float(lines[7].split('=')[1])
def extract_iterations_per_second_jpeg(file_path):
with open(file_path, 'r') as file:
lines = file.readlines()
return float(lines[7+21].split('=')[1])
if __name__ == "__main__":
title = 'Coremarkpro - [iterations/s] - multicore'
extract_and_plot("coremarkpro-core", extract_iterations_per_second, ["single entry"], title)
extract_and_plot("coremarkpro-fft", extract_iterations_per_second, ["single entry"], title)
extract_and_plot("coremarkpro-gaussian", extract_iterations_per_second, ["single entry"], title)
extract_and_plot("coremarkpro-jpeg", extract_iterations_per_second_jpeg, ["single entry"], title)
extract_and_plot("coremarkpro-livermore", extract_iterations_per_second, ["single entry"], title)
extract_and_plot("coremarkpro-neuralnetwork", extract_iterations_per_second, ["single entry"], title)
extract_and_plot("coremarkpro-sha", extract_iterations_per_second, ["single entry"], title)
extract_and_plot("coremarkpro-xml", extract_iterations_per_second, ["single entry"], title)
extract_and_plot("coremarkpro-zip", extract_iterations_per_second, ["single entry"], title)