Skip to content

Commit

Permalink
changes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
thompsonphys committed Dec 12, 2019
1 parent 019830a commit b5592f6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions issues/8-jt_parallelization/run_parallel_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,12 @@
chrpdata = np.array(timeit.repeat(chrprun,globals=globals(),number=iterations,repeat=reruns))/100
funcsdata = np.array(timeit.repeat(funcsrun,globals=globals(),number=iterations,repeat=reruns))/100

print('chirpy_mk1 mean time (in s): {}'.format(np.mean(chrpdata)))
print('parallel mean time (in s): {}'.format(np.mean(funcsdata)))

chrpmean = np.mean(chrpdata)
funcsmean = np.mean(funcsdata)

chrpstd = np.std(chrpdata)
funcsstd = np.std(funcsdata)

print('chirpy_mk1 mean time (in s): {:0.5f} ± {:1.3f}'.format(np.mean(chrpmean,chrpstd))
print('parallel mean time (in s): {:0.5f} ± {:1.3f}'.format(funcsmean,funcsstd)))

0 comments on commit b5592f6

Please sign in to comment.