Skip to content

Commit

Permalink
added accumulated time in benchmark output
Browse files Browse the repository at this point in the history
  • Loading branch information
jrjohansson committed Mar 8, 2013
1 parent a0a697a commit 0cf7b99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmark/matlab_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
# read in matlab results
times = np.genfromtxt('matlab_benchmarks.csv', delimiter=',')

matlab_info.append({'label': 'Acc. time', 'value': "%.2f s" % sum(times)})

data = [{'name': "test%d" % n, 'time': times[n]} for n in range(len(times))]

matlab_bm = {"info": matlab_info, "data": data}
Expand Down
2 changes: 2 additions & 0 deletions benchmark/qutip_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def run_tests(N):

data = [{'name': names[n], 'time': times[n]} for n in range(len(names))]

qutip_info.append({'label': 'Acc. time', 'value': "%.2f s" % sum(times)})

qutip_bm = {"info": qutip_info, "data": data}

with open(args.output_file, "w") as outfile:
Expand Down

0 comments on commit 0cf7b99

Please sign in to comment.