Skip to content

Commit 2b50735

Browse files
committed
Cleanup.
1 parent 2e490ae commit 2b50735

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

tests/test_performance.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def tearDownClass(cls):
2727

2828
def test_performance(self):
2929
print('\n' + ('-' * 80))
30-
print('django-react performance test')
30+
print('python-react performance test')
3131
print('-' * 80)
3232

3333
render_component_times = []
@@ -70,18 +70,18 @@ def test_performance(self):
7070
iteration_count=iteration_count,
7171
value=sum(render_component_times)
7272
))
73-
print('Times: {value}'.format(value=render_component_times))
74-
print('Max: {value}'.format(value=max(render_component_times)))
75-
print('Min: {value}'.format(value=min(render_component_times)))
76-
print('Mean: {value}'.format(value=sum(render_component_times) / len(render_component_times)))
77-
print('Median: {value}'.format(value=median(render_component_times)))
73+
print('Times: {value}'.format(render_component_times))
74+
print('Max: {value}'.format(max(render_component_times)))
75+
print('Min: {value}'.format(min(render_component_times)))
76+
print('Mean: {value}'.format(sum(render_component_times) / len(render_component_times)))
77+
print('Median: {value}'.format(median(render_component_times)))
7878

7979
print('\nTotal time taken to render a watched component {iteration_count} times: {value}'.format(
8080
iteration_count=iteration_count,
8181
value=sum(render_watched_component_times)
8282
))
83-
print('Times: {value}'.format(value=render_watched_component_times))
84-
print('Max: {value}'.format(value=max(render_watched_component_times)))
85-
print('Min: {value}'.format(value=min(render_watched_component_times)))
86-
print('Mean: {value}'.format(value=sum(render_watched_component_times) / len(render_watched_component_times)))
87-
print('Median: {value}'.format(value=median(render_watched_component_times)))
83+
print('Times: {}'.format(render_watched_component_times))
84+
print('Max: {}'.format(max(render_watched_component_times)))
85+
print('Min: {}'.format(min(render_watched_component_times)))
86+
print('Mean: {}'.format(sum(render_watched_component_times) / len(render_watched_component_times)))
87+
print('Median: {}'.format(median(render_watched_component_times)))

0 commit comments

Comments
 (0)