Skip to content

Improve performance of test generation #324

Open
@nicoburns

Description

@nicoburns

Problem

Taffy's test generation (not actually running the tests) is kinda slow. It's definitely managable. However, when generating test for yoga-rs, I noticed that their test generation was significantly faster despite them having a similar test setup.

Suspected Cause

I suspect this is due to Yoga (and thus yoga-rs) generating their tests in several large batches rather than a batch size of 1-test-per-file that we currently use in Taffy. Specifically, I suspect the slow step is Chrome loading the webpage (it's not that slow, but it has 400 500+ pages to load).

Proposed solution

Try introducing batching into Taffy's test generation script, and see if this speed things up. We could also consider using a modified version of Yoga's gentest setup (where the actual test generation is done in JS running in the browser and the wrapper just writes a string to a file), which would allow us to share maintainance of the script, and may also make ongoing sharing of the test suite itself easier to sustain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceLayout go brrtestingAdditional tests or improvements to the testing infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions