Coding Global Background
Coding Global

Python Speed test

python
Archived 2 months ago
👎1
0 messages
1 members
Created 3 months ago
Updated 3 months ago
Open in Discord
Y
𝙣𝙮𝙡𝙤𝙣
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}")