Skip to content

Commit

Permalink
added average to performance times
Browse files Browse the repository at this point in the history
  • Loading branch information
josura committed Aug 27, 2024
1 parent ad33a08 commit 993377f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/bash/cluster/performanceAnalysis/plotExperiments.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import matplotlib.pyplot as plt
import networkx as nx
from matplotlib.animation import FuncAnimation
import pandas as pd
#import seaborn as sns
import numpy as np
import os

# read the timeseries data, the data is in the format of:
# graphNodesNumber numberProcesses numberTypes numberIterations time

# read the data
data = pd.read_csv("/home/josura/Projects/ccc/c2c-sepia/scripts/bash/cluster/performanceAnalysis/performanceTimes.tsv", sep="\t")

# add a column with the average time, group by the number of nodes and the number of processes
data["averageTime"] = data.groupby(["graphNodesNumber", "numberProcesses"])["time"].transform("mean")

# plot in 3d the number of processes, the number of nodes and the time
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.scatter(data["graphNodesNumber"], data["numberProcesses"], data["averageTime"])
ax.set_xlabel('Number of Nodes')
ax.set_ylabel('Number of Processes')
ax.set_zlabel('Time')
plt.show()

0 comments on commit 993377f

Please sign in to comment.