Skip to content

Busy-wait loops counter-productive on slow tests #450

Description

@ehuelsmann

I'm using Yath to drive my Selenium tests, which are extremely slow to produce test events, when compared to the regular t/*.t test file pattern. The result is that I have one core busy-spinning the wait-loop. This core could have been put to use in producing test results faster, if Yath would fall back to select() or poll() either immediately, or after initially trying to busy-wait a few cycles.

This doesn't matter so much on my local test machine (although it would silence my laptop during test runs), but does make a difference on core-constrained environments such as GitHub Actions or CircleCI. I use both with free FOSS access.

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