shortened up the tests to make them more reasonable total runtime.

This commit is contained in:
fawce
2012-05-25 12:42:29 -04:00
parent b533961247
commit 35c034eb31
2 changed files with 16 additions and 2 deletions
+7
View File
@@ -34,3 +34,10 @@ def load_ndict():
for i in xrange(1000000):
nd[keyname % i]
def mass_create_ndict():
from zipline import ndict
data = dict(('a %d' % a,a) for a in xrange(1000))
for i in xrange(10000):
ndict(data)
+9 -2
View File
@@ -8,13 +8,20 @@ from zipline_bench_functions import *
basic_zipline = Benchmark(
'run_basic_zipline()',
setup=setup,
start_date=datetime(2012,4,15),
start_date=datetime(2012,5,15),
name='basic_zipline_test'
)
load_ndict = Benchmark(
'load_ndict',
'load_ndict()',
setup=setup,
start_date=datetime(2012,4,15),
name='load_ndict'
)
mass_create_ndict = Benchmark(
'mass_create_ndict()',
setup=setup,
start_date=datetime(2012,5,1),
name='create_ndict'
)