added helpers module with speed test
This commit is contained in:
9
helpers.py
Normal file
9
helpers.py
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user