Skip to content

Commit 24b39ca

Browse files
committed
added unit,timeout and docstring for readability
1 parent 1bc7e6d commit 24b39ca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

benchmarks/benchmarks/analysis/hbond_analysis.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Benchmark for HydrogenBondAnalysis
3+
"""
4+
15
try:
26
from MDAnalysis.analysis.hydrogenbonds.hbond_analysis import HydrogenBondAnalysis as HBA
37
from MDAnalysisTests.datafiles import waterPSF , waterDCD
@@ -7,6 +11,13 @@
711
import MDAnalysis
812

913
class HydrogenBondAnalysisBenchmark:
14+
"""
15+
It tests performance of hbond.run() across different
16+
number of frames using waterPSF/waterDCD test files.
17+
"""
18+
19+
unit = "ms"
20+
timeout = 60.0
1021
params = [2, 5, 10]
1122
param_names = ["n_frames"]
1223

0 commit comments

Comments
 (0)