def get_bar_plot(): res = [] for x in xlist: sum = 0 for _ in range(10): t = time.time() main("file", "statics/sample_1KB", x) sum += time.time() - t res.append(round(sum * 100, 2)) results["1KB"] = res bar_plot(xlist, res)
def get_line_plot(): for x in xlist: res = [] for y in ylist: sum = 0 for _ in range(10): t = time.time() main("file", "statics/sample_%s" % y, x) sum += time.time() - t res.append(round(sum * 100, 2)) results[x] = res line_plot(xlist)
def generateKeypairTwo(self, event): con = self.m_textCtrl21.GetValue() if con == "": sk = "null" pk = "null" else: h, sk, pk = main("str", con, 2048) self.m_textCtrl22.SetValue(sk) self.m_textCtrl23.SetValue(pk) event.Skip()