New GitHub issue #101370 from a-temnikov:<br>
<hr>
<pre>
I checked performance with this script:
`
import time
from enum import IntEnum
class BitAvailability(IntEnum):
BUSY: int = 0
FREE: int = 1
tb = time.time_ns()
for i in range(100000000):
if i == BitAvailability.BUSY:
pass
ta = time.time_ns()
print(f'{(ta - tb) / 10**9}')
`
The results were like:
`
$ python3.10 ~/test_enum.py
14.056523
$ python3.11 ~/test_enum.py
15.676774
`
Checked with Python 3.10.9 and Python 3.11.1 on MacOS 10.15.7, x86_64
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/101370">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>