Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property access benchmarking: timeit-based shell script #732

Open
wants to merge 3 commits into
base: ev3dev-stretch
Choose a base branch
from

Conversation

WasabiFan
Copy link
Member

Here's my take on a reproducible benchmark for property accesses. What do others think about this? I picked a few representative properties (mostly arbitrarily).

My hope is that we can then implement changes to the property access code and make reasonable decisions regarding perf regressions.

10000 loops, best of 3: 144 usec per loop
Motor write speed_sp:
1000 loops, best of 3: 1.08 msec per loop
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty cool. I think some newlines in the output would help make it a little more readable but that is minor.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants