def measure_del():
    start = time.time()
for i in range(0, int(math.pow(10, 8))):
    a = '123'
del a
end = time.time()
print(end - start)

def measure_none():
    start = time.time()
for i in range(0, int(math.pow(10, 8))):
    a = '123'
a = None
end = time.time()
print(end - start)
Оператор Python del