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

Tiner's overhead costing #1

Open
gusye1234 opened this issue Sep 30, 2022 · 0 comments
Open

Tiner's overhead costing #1

gusye1234 opened this issue Sep 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@gusye1234
Copy link
Owner

Now, tiner is using the context mechanism tricky in Python, which seems have some overheads.
The reporting time form tiner is not the exact running time of the block, roughly 1e-3s more

with tiner("test:block"):
s = perf_counter()
sleep(duration)
d = perf_counter() - s
assert (tiner.get("test:block") - d) < 1e-3

@gusye1234 gusye1234 added the enhancement New feature or request label Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant