4 Tests the speed of "import sympy" by measuring it many times in a row and
14 from pexpect
import run
15 from numpy
import mean
, std
18 t
= run("python bin/test_import.py")
22 tests
= [test() for x
in range(n_tests
+1)]
23 print "Note: the first run (warm up) was not included in the average + std dev"
24 print "All runs (including warm up):"
26 # skip the first run (warm up):
28 print "Number of tests: %d" % (n_tests
)
29 print 'The speed of "import sympy" is: %f +- %f' % (mean(tests
), std(tests
))