Skip to content

Commit 83e37f2

Browse files
committed
adding vscript based perf test
1 parent 90351f3 commit 83e37f2

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import vutils
2+
import datetime
3+
if __name__=='__main__':
4+
print('Uses Vista which wraps lowlevel HEC DSSVue functions')
5+
d=vutils.opendss('ITP_PP_out_ec.dss')
6+
s=datetime.datetime.now()
7+
npaths=len(d) # Used to load the catalog into memory
8+
print('Catalog read in %s'%str(datetime.datetime.now()-s))
9+
print('Reading data from %s pathnames'%str(npaths))
10+
s=datetime.datetime.now()
11+
for ref in d:
12+
s1=datetime.datetime.now()
13+
data=ref.getData()
14+
path=ref.getPathname()
15+
print('Read %s in %s '%(str(path), str(datetime.datetime.now()-s1)))
16+
print('Read %s in %s'%(npaths,str(datetime.datetime.now()-s)))

0 commit comments

Comments
 (0)