Open GoZippy opened 1 year ago
plus just nice to see over time how well it is performing..... but don't want to screw with efficiency of overall code to calculate these stats too badly so might think of better way to run the counts outside of the main...
Here I am attempting to update UI every 100 loops.. can make it every 100,000 or whatever makes sense for your hardware...
this should, when finished, show each core/thread process stats and then a total of all...
Working on giving console output of Iterations: Time: Total Iters/sec: Address: with curses so it's a little easier to see what's going on on each machine running this code and tell pretty quickly if there are any issues...
`` def task(countN): countN += 1 return countN
def main(database, args): stdscr = curses.initscr() curses.cbreak() curses.noecho() stdscr.keypad(True) stdscr.nodelay(True) curses.start_color() curses.use_default_colors()
``