Skip to content

Commit efd6123

Browse files
committed
MAINT: PR 821 revisions
* more reasonable memory footprint for `peakmem_log_get_mounts()` * add regression guard for gh-824
1 parent 32381af commit efd6123

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

darshan-util/pydarshan/benchmarks/benchmarks/cffi_backend.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import darshan
12
from darshan.backend import cffi_backend
23
from darshan.log_utils import get_log_path
34

@@ -27,7 +28,15 @@ def peakmem_log_get_record(self, module):
2728

2829

2930
def peakmem_log_get_mounts(self, module):
30-
for i in range(100000):
31+
for i in range(10000):
3132
log = cffi_backend.log_open(self.ior_log_path)
3233
rec = cffi_backend.log_get_mounts(log)
3334
cffi_backend.log_close(log)
35+
36+
37+
def peakmem_log_get_name_recs(self, module):
38+
for i in range(10000):
39+
with darshan.DarshanReport(self.ior_log_path,
40+
read_all=True,
41+
lookup_name_records=True) as report:
42+
pass

0 commit comments

Comments
 (0)