Skip to content
Snippets Groups Projects
Commit d1446778 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

fix comment

parent 92981755
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,13 @@ class cache():
if usecachetype != "NoCache":
self.caches[func] = cachetools_func(*args)
def test_caches(self,ntests=10000,dt=5.0):
def test_caches(self,dt=5.0):
"""
Function to test cache speeds of the functions that binary_c-python automatically caches.
Args:
dt (default 5) in seconds the length of each test. Long is more accurate, but takes longer (obviously).
"""
cachetypes = ("NullCache","FIFOCache","LRUCache","TTLCache","NoCache")
functions = self.grid_options['function_cache_functions'].keys()
maxsizes = (0,1,2,4,8,16,32,64,128,256)
......@@ -211,6 +217,7 @@ class cache():
stdscr.refresh()
stdscr.getkey()
stdscr.keypad(0)
curses.echo()
print("\npress any key to exit\n")
curses.endwin()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment