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

Function check_open_close

bench/open_close-bench.py:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def check_open_close():
44 for i in range(niter):
45 print(
46 "------------------ open_close #%s -------------------------" % i
47 )
48 tref = clock()
49 fileh = tb.open_file(filename)
50 fileh.close()
51 show_stats("After closing file", tref)
52
53
54def check_only_open():

Callers

nothing calls this directly

Calls 2

show_statsFunction · 0.70
closeMethod · 0.45

Tested by

no test coverage detected