Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

[BUG] Function Timing on MacOS Very Inconsistent #2

Open
DeveloperPaul123 opened this issue Aug 19, 2020 · 5 comments
Open

[BUG] Function Timing on MacOS Very Inconsistent #2

DeveloperPaul123 opened this issue Aug 19, 2020 · 5 comments
Labels
bug Something isn't working good first issue Good for newcomers Hacktoberfest help wanted Extra attention is needed

Comments

@DeveloperPaul123
Copy link
Owner

Function timings seem to be very wildly inconsistent based on test runs. Sample output from unit tests:

Elapsed time: 312
Elapsed time: 305
Elapsed time: 346
Elapsed time: 303
Elapsed time: 303
Elapsed time: 311
Elapsed time: 312
Elapsed time: 304
Elapsed time: 320
Elapsed time: 305
Elapsed time: 328
Elapsed time: 333
Elapsed time: 303
Elapsed time: 375
Elapsed time: 310
Elapsed time: 314
Elapsed time: 302
Elapsed time: 344
Elapsed time: 310
Elapsed time: 319
Elapsed time: 371
Elapsed time: 306
Elapsed time: 302

This could be due to running in Debug and further testing needs to be done to see if there is a difference in behavior in Release.

@DeveloperPaul123 DeveloperPaul123 added the bug Something isn't working label Aug 19, 2020
@DeveloperPaul123
Copy link
Owner Author

This happens in Release as well.

@DeveloperPaul123 DeveloperPaul123 added the help wanted Extra attention is needed label Sep 15, 2020
@DeveloperPaul123
Copy link
Owner Author

After further investigation it seems that a different approach to the function timeout may be needed to avoid timer errors. It seems the error might be related to the timeout duration.

@DeveloperPaul123
Copy link
Owner Author

Merging of #11 improved performance of the timing on MacOS but not all test cases pass (yet).

@gzliurc
Copy link

gzliurc commented Oct 31, 2020

I think this issue is the same problem.
It is not cause by performance.

@DeveloperPaul123
Copy link
Owner Author

@gzliurc Could be, but it's odd that this particular issue only surfaces on MacOS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers Hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants