added helpers module with speed test

This commit is contained in:
2020-01-12 10:24:54 +01:00
parent 55374f960a
commit 58b57c6be2

9
helpers.py Normal file
View File

@@ -0,0 +1,9 @@
# coding: utf-8
def see_how_fast_this_computer_counts_per_second():
start = time.time()
for i in range(1_000_000):
print(i)
end = time.time()
took_seconds = end - start
return 1_000_000 / took_seconds