Skip to content

Instantly share code, notes, and snippets.

@mike-huls
Created August 11, 2023 07:27
Show Gist options
  • Save mike-huls/45593ba9c642d6a85b6a7ef79530a6dc to your computer and use it in GitHub Desktop.
Save mike-huls/45593ba9c642d6a85b6a7ef79530a6dc to your computer and use it in GitHub Desktop.
some_guy = Person(first_name='mike', last_name='huls', age=33)
┌───────────┬──────────┬──────────┬──────────┐
│ creating │ Min (ms) │ Max (ms) │ Avg (ms) │
├───────────┼──────────┼──────────┼──────────┤
│ no slots │ 2246.65 │ 2313.25 │ 2272.53 │
│ slots │ 1806.02 │ 1850.94 │ 1828.38 │ (-19,5%)
└───────────┴──────────┴──────────┴──────────┘
# some_guy.firstname
┌───────────┬──────────┬──────────┬──────────┐
│ accessing │ Min (ms) │ Max (ms) │ Avg (ms) │
├───────────┼──────────┼──────────┼──────────┤
│ no slots │ 294.31 │ 302.58 │ 297.19 │
│ slots │ 268.11 │ 272.15 │ 270.55 │ (-8.9%)
└───────────┴──────────┴──────────┴──────────┘
# some_guy.firstname = 'bert'
┌───────────┬──────────┬──────────┬──────────┐
│ assigning │ Min (ms) │ Max (ms) │ Avg (ms) │
├───────────┼──────────┼──────────┼──────────┤
│ no slots │ 315.08 │ 332.77 │ 322.64 │
│ slots │ 269.18 │ 273.69 │ 271.68 │ (-15,8%)
└───────────┴──────────┴──────────┴──────────┘
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment