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

Function modify_junk_lru2

bench/LRU-experiments2.py:34–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def modify_junk_lru2():
35 fileh = tb.open_file(filename, "a")
36 group = fileh.root
37 for j in range(5):
38 t1 = clock()
39 for i in range(100): # The number
40 # print("table-->", tt._v_name)
41 _ = getattr(group, "array" + str(i))
42 # d = _.read()
43 print(f"iter and time --> {j + 1} {clock() - t1:.3f}")
44 fileh.close()
45
46
47if 1:

Callers 1

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected