MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / run

Function run

scripts/plot_mrc_time.py:156–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154
155
156def run():
157 import glob
158
159 algos = "lru,arc,lhd,tinylfu,s3fifo,sieve"
160 cache_sizes = "0"
161 for i in range(1, 100, 2):
162 cache_sizes += str(i / 100.0) + ","
163 cache_sizes = cache_sizes[:-1]
164 print(cache_sizes)
165
166 for tracepath in glob.glob("/disk/data/*.zst"):
167 dataname = extract_dataname(tracepath)
168 mrc_dict = run_cachesim_time(tracepath, algos, cache_sizes)
169 plot_mrc_time(mrc_dict, dataname)
170
171
172if __name__ == "__main__":

Callers 1

plot_mrc_time.pyFile · 0.70

Calls 3

extract_datanameFunction · 0.90
run_cachesim_timeFunction · 0.85
plot_mrc_timeFunction · 0.85

Tested by

no test coverage detected