Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
markfinger committed Apr 23, 2015
1 parent 2e490ae commit 2b50735
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def tearDownClass(cls):

def test_performance(self):
print('\n' + ('-' * 80))
print('django-react performance test')
print('python-react performance test')
print('-' * 80)

render_component_times = []
Expand Down Expand Up @@ -70,18 +70,18 @@ def test_performance(self):
iteration_count=iteration_count,
value=sum(render_component_times)
))
print('Times: {value}'.format(value=render_component_times))
print('Max: {value}'.format(value=max(render_component_times)))
print('Min: {value}'.format(value=min(render_component_times)))
print('Mean: {value}'.format(value=sum(render_component_times) / len(render_component_times)))
print('Median: {value}'.format(value=median(render_component_times)))
print('Times: {value}'.format(render_component_times))
print('Max: {value}'.format(max(render_component_times)))
print('Min: {value}'.format(min(render_component_times)))
print('Mean: {value}'.format(sum(render_component_times) / len(render_component_times)))
print('Median: {value}'.format(median(render_component_times)))

print('\nTotal time taken to render a watched component {iteration_count} times: {value}'.format(
iteration_count=iteration_count,
value=sum(render_watched_component_times)
))
print('Times: {value}'.format(value=render_watched_component_times))
print('Max: {value}'.format(value=max(render_watched_component_times)))
print('Min: {value}'.format(value=min(render_watched_component_times)))
print('Mean: {value}'.format(value=sum(render_watched_component_times) / len(render_watched_component_times)))
print('Median: {value}'.format(value=median(render_watched_component_times)))
print('Times: {}'.format(render_watched_component_times))
print('Max: {}'.format(max(render_watched_component_times)))
print('Min: {}'.format(min(render_watched_component_times)))
print('Mean: {}'.format(sum(render_watched_component_times) / len(render_watched_component_times)))
print('Median: {}'.format(median(render_watched_component_times)))

0 comments on commit 2b50735

Please sign in to comment.