-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot_big.py
39 lines (31 loc) · 1.08 KB
/
plot_big.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
32
33
34
35
36
37
38
39
import matplotlib.pyplot as plt
import numpy as np
gis_means = np.loadtxt('data/big/gis_means')
gis_st_means = np.loadtxt('data/big/gis_st_means')
gis_branches_means = np.loadtxt('data/big/gis_branches_means')
gis_fe_means = np.loadtxt('data/big/gis_fe_means')
gis_co_means = np.loadtxt('data/big/gis_co_means')
gis_files_means = np.loadtxt('data/big/gis_files_means')
versions = np.loadtxt('data/big/gis_versions', dtype='str', ndmin=1)
x = np.arange(len(versions))
width = 0.1
multiplier = 0
means = {
'gis': gis_means,
'branches': gis_branches_means,
'checkout': gis_co_means,
'fetch': gis_fe_means,
'files': gis_files_means,
'status': gis_st_means,
}
fig, ax = plt.subplots(figsize=(10, 10), layout='constrained')
for att, measure in means.items():
offset = width * multiplier
rects = ax.bar(x + offset, measure, width, label=att)
ax.bar_label(rects, label_type='center', color='w')
multiplier += 1
ax.set_ylabel('Time (ms)')
ax.set_xticks(x + .25, versions)
ax.legend(loc='best', ncols = 6)
# plt.show()
plt.savefig('data/big/gis_performance.svg')