Skip to content

Commit

Permalink
test_m5_2xlarge: fixed some problems with text in plots
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Salazar <[email protected]>
  • Loading branch information
StevenSalazarM committed May 9, 2020
1 parent 955d1ae commit 0de3b60
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 33 deletions.
Binary file modified test_m5_2xlarge/Images/overall_time_no_cache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 11 additions & 12 deletions test_m5_2xlarge/plot_overall_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


average_overall_time = [[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0]]
workers = [1, 2, 3, 4, 5, 6, 7, 8]
cores = [1, 2, 3, 4, 5, 6, 7, 8]
for w in range(3):
for c in range(8):
file_ov = open("OverallTimeCache/results_overall/"+str(w+1)+"_worker_"+str(c+1)+"_cores_overall_time.txt", "r")
Expand All @@ -17,13 +17,12 @@

fig = plt.figure(figsize=(18,6))
ax = fig.add_subplot(111)
ax.plot(workers, average_overall_time[0], label='1 Worker [Cache]', color='red')
ax.plot(workers, average_overall_time[1], label='2 Workers [Cache]', color='y')
ax.plot(workers, average_overall_time[2], label='3 Workers [Cache]', color='orange')
ax.plot(cores, average_overall_time[0], label='1 Worker [Cache]', color='red')
ax.plot(cores, average_overall_time[1], label='2 Workers [Cache]', color='y')
ax.plot(cores, average_overall_time[2], label='3 Workers [Cache]', color='orange')


average_overall_time = [[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0]]
workers = [1, 2, 3, 4, 5, 6, 7, 8]
for w in range(3):
for c in range(8):
file_ov = open("OverallTimeNoCache/results_overall/"+str(w+1)+"_worker_"+str(c+1)+"_cores_overall_time.txt", "r")
Expand All @@ -35,14 +34,14 @@
average_overall_time[w][c] /= count
file_ov.close()

ax.plot(workers, average_overall_time[0], label='1 Worker [No Cache]', color='blue')
ax.plot(workers, average_overall_time[1], label='2 Workers [No Cache]', color='green')
ax.plot(workers, average_overall_time[2], label='3 Workers [NoCache]', color='violet')
ax.plot(cores, average_overall_time[0], label='1 Worker [No Cache]', color='blue')
ax.plot(cores, average_overall_time[1], label='2 Workers [No Cache]', color='green')
ax.plot(cores, average_overall_time[2], label='3 Workers [NoCache]', color='violet')

#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='4 cores', color='yellow')
#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='5 cores', color='black')
#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='6 cores', color='orange')
#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='7 cores', color='grey')
#ax.plot(cores, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='4 cores', color='yellow')
#ax.plot(cores, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='5 cores', color='black')
#ax.plot(cores, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='6 cores', color='orange')
#ax.plot(cores, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='7 cores', color='grey')
#ax.plot(wo, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='8 cores', color='violet')
# Add first legend: only labeled data is included

Expand Down
14 changes: 4 additions & 10 deletions test_m5_2xlarge/plot_overall_time_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


average_overall_time = [[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0]]
workers = [1, 2, 3, 4, 5, 6, 7, 8]
cores = [1, 2, 3, 4, 5, 6, 7, 8]
for w in range(3):
for c in range(8):
file_ov = open("OverallTimeCache/results_overall/"+str(w+1)+"_worker_"+str(c+1)+"_cores_overall_time.txt", "r")
Expand All @@ -17,17 +17,11 @@

fig = plt.figure(figsize=(18,6))
ax = fig.add_subplot(111)
ax.plot(workers, average_overall_time[0], label='1 Worker [Cache]', color='red')
ax.plot(workers, average_overall_time[1], label='2 Workers [Cache]', color='y')
ax.plot(workers, average_overall_time[2], label='3 Workers [Cache]', color='orange')
ax.plot(cores, average_overall_time[0], label='1 Worker [Cache]', color='red')
ax.plot(cores, average_overall_time[1], label='2 Workers [Cache]', color='y')
ax.plot(cores, average_overall_time[2], label='3 Workers [Cache]', color='orange')

#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='4 cores', color='yellow')
#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='5 cores', color='black')
#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='6 cores', color='orange')
#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='7 cores', color='grey')
#ax.plot(wo, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='8 cores', color='violet')
# Add first legend: only labeled data is included

leg1 = ax.legend(loc='center left', bbox_to_anchor=(1, 0.5))
# Add second legend for the maxes and mins.
# Manually add the first legend back
Expand Down
13 changes: 4 additions & 9 deletions test_m5_2xlarge/plot_overall_time_no_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


average_overall_time = [[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0]]
workers = [1, 2, 3, 4, 5, 6, 7, 8]
cores = [1, 2, 3, 4, 5, 6, 7, 8]
for w in range(3):
for c in range(8):
file_ov = open("OverallTimeNoCache/results_overall/"+str(w+1)+"_worker_"+str(c+1)+"_cores_overall_time.txt", "r")
Expand All @@ -17,15 +17,10 @@

fig = plt.figure(figsize=(18,6))
ax = fig.add_subplot(111)
ax.plot(workers, average_overall_time[0], label='1 Worker [Cache]', color='blue')
ax.plot(workers, average_overall_time[1], label='2 Workers [Cache]', color='green')
ax.plot(workers, average_overall_time[2], label='3 Workers [Cache]', color='violet')
ax.plot(cores, average_overall_time[0], label='1 Worker [NoCache]', color='blue')
ax.plot(cores, average_overall_time[1], label='2 Workers [NoCache]', color='green')
ax.plot(cores, average_overall_time[2], label='3 Workers [NoCache]', color='violet')

#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='4 cores', color='yellow')
#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='5 cores', color='black')
#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='6 cores', color='orange')
#ax.plot(workers, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='7 cores', color='grey')
#ax.plot(wo, [0, 279, 280, 299, 300, 306, 312, 322, 340], label='8 cores', color='violet')
# Add first legend: only labeled data is included

leg1 = ax.legend(loc='center left', bbox_to_anchor=(1, 0.5))
Expand Down
4 changes: 2 additions & 2 deletions test_m5_2xlarge/plot_stacked_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
file_ov.close()

# print(load_time)
# print(overall_time)
# print(jobs_time)
print(overall_time)
print(jobs_time)
# print(shuffle_time)
# print(output_time)

Expand Down

0 comments on commit 0de3b60

Please sign in to comment.