Coding Global Background
Coding Global

Python Speed test

python
Archiviert 4 months ago
👎1
0 Nachrichten
1 Mitglieder
Erstellt 5 months ago
Aktualisiert 5 months ago
In Discord öffnen
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}")