Skip to content

Instantly share code, notes, and snippets.

@zeburek
Created December 2, 2019 18:22
Show Gist options
  • Save zeburek/5b31ff07fb8719163c9997ff156ca164 to your computer and use it in GitHub Desktop.
Save zeburek/5b31ff07fb8719163c9997ff156ca164 to your computer and use it in GitHub Desktop.

cattrs

         4383229 function calls (4132429 primitive calls) in 3.026 seconds

   Ordered by: internal time

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
150000/25000    0.920    0.000    1.651    0.000 converters.py:195(unstructure_attrs_asdict)
150000/25000    0.687    0.000    1.290    0.000 converters.py:294(structure_attrs_fromdict)

convclasses

         5483206 function calls (5232412 primitive calls) in 3.570 seconds

   Ordered by: internal time

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
150000/25000    1.101    0.000    2.057    0.000 converters.py:292(structure_dataclass_fromdict)
150000/25000    0.918    0.000    1.688    0.000 converters.py:192(unstructure_dataclass_asdict)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment