Last active
May 16, 2020 09:57
-
-
Save highsmallxu/5557fbb6722e4648ec147fd8b8a2ffa0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
method | size | object-creation-time | attribute-access-time | |
---|---|---|---|---|
Regular Python class | 64bytes | 456ms | 34ms | |
collections.namedtuple | 80bytes | 435ms | 47ms | |
typing.NamedTuple | 80bytes | 432ms | 45ms | |
dataclass | 64bytes | 448ms | 44ms | |
dataclass with slots | 72bytes | 388ms | 43ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment