MCPcopy Create free account
hub / github.com/PyTables/PyTables / modify_junk_lru3

Function modify_junk_lru3

bench/LRU-experiments.py:74–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73
74def modify_junk_lru3():
75 fileh = tb.open_file(filename, "a")
76 group = fileh.root.newgroup
77 for j in range(3):
78 t1 = clock()
79 for tt in fileh.walk_nodes(group, "Table"):
80 tt.attrs.TITLE
81 for row in tt:
82 pass
83 print(f"iter and time --> {j + 1} {clock() - t1:.3f}")
84 fileh.close()
85
86
87if 1:

Callers 1

LRU-experiments.pyFile · 0.85

Calls 2

walk_nodesMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected