We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d44f86 commit fc1fa43Copy full SHA for fc1fa43
python-first/chart.py
@@ -6,8 +6,8 @@
6
from looping import find_match_loop
7
from test_cases import build_list
8
9
-TIMEIT_TIMES = 10_000
10
-LIST_SIZE = 1_000
+TIMEIT_TIMES = 100_000
+LIST_SIZE = 500
11
POSITION_INCREMENT = 10
12
13
looping_times = []
@@ -49,6 +49,8 @@
49
plot = ax.plot(positions, generator_times)
50
51
plt.xlim([0, LIST_SIZE])
52
+plt.xlabel("Position of element to be found")
53
plt.ylim([0, max(max(looping_times), max(generator_times))])
54
+plt.ylabel(f"Time to complete {TIMEIT_TIMES:,} times")
55
56
plt.show()
0 commit comments