Coding Global Background
Coding Global

Python Speed test

python
Archived 4 months ago
👎1
0 messages
1 members
Created 5 months ago
Updated 5 months ago
Open in Discord
Y
Mxrd
Vibe Coder!
 time

numbers = 100000

def test():

    for i in range(numbers):
        print(i)

start = time.time()

test()

end = time.time()

dauer = end - start
print(f"{dauer:.4f} seconds to print {numbers}")