Skip to content

Overhead benchmark #6

@paulocheque

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()

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