Files
Prog_3A/Prog_2A/lab_8/test.py
T
2026-10-19 20:29:13 +02:00

10 lines
188 B
Python

import random
import time
NUM_ELEMENTS = 1_000_000
l = [random.randint(0, 2*NUM_ELEMENTS) for _ in range(NUM_ELEMENTS)]
start = time.time()
sorted(l)
end = time.time()
print(end - start)