Пример #1
0
 def scalability(self, comm, numbers, skip, mean):
     logs = Logs()
     plotter = Plotter()
     for count in numbers:
         tid = "{}-scalability-{:02d}".format(comm, count)
         title = "Scalability - {} nodes ({})".format(count, comm.upper())
         self.run(comm + "_scalability", tid, count, title, count, skip,
                  logs, mean)
     if len(logs.keys()) > 0:
         for cmd in self.commands:
             xlabel = "Number of nodes"
             prefix = "{}-scalability-{}".format(comm, cmd)
             logs.extractThroughput('data/{}-throughput.dat'.format(prefix),
                                    cmd)
             logs.extractLatency('data/{}-latency.dat'.format(prefix), cmd)
             if len(logs.keys()) > 1:
                 plotter.throughput("{}-throughput".format(prefix), cmd,
                                    xlabel)
                 plotter.latency("{}-latency".format(prefix), cmd, xlabel)