Skip to content

Overhead benchmark #6

Description

@paulocheque

Hi, very insteresting library!

Do you have any benchmark to calculate the overhead for async and for sync functions using the decorator?

Something like:

def sync_func(): pass
async def async_func(): pass

@async_to_sync_wraps
async def wrapped_async_func(): pass
timeit sync_func()
timeit await async_func()
timeit wrapped_async_func()
timeit await wrapped_async_func()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions