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

Async/Await support in Performance Testing methods #487

Open
ali-ahsan-ali opened this issue Apr 29, 2024 · 0 comments
Open

Async/Await support in Performance Testing methods #487

ali-ahsan-ali opened this issue Apr 29, 2024 · 0 comments

Comments

@ali-ahsan-ali
Copy link

If you have an async function it is currently not possible to test it utilising the XCTest Measure library. Even if you have no awaits as part of the async function, if the function signature is async and needs to be awaited it does not work.

Suggestion: Run the method as part of main actor, starting the measuring of what I will call block() right before execution and ending right after execution.

Assuming no other tasks are spun up inside the function being called, would this ensure that the task is run synchronously and thus performance tested? Or is there other alternatives.

@ali-ahsan-ali ali-ahsan-ali changed the title Async Performance Testing Async/Await support in Performance Testing methods Apr 29, 2024
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

No branches or pull requests

1 participant