Skip to content

Measuring the time to complete task when run in a request animation frame. #47

@ivanceras

Description

@ivanceras

When running the benchmark for sauron I noticed that if you use request_animation_frame on the executing the update/dispatch function it will register a longer time to complete than without using requestion_animation_frame.

Using request_animation_frame under the hood of patching the dom will significantly make the UI more responsive, and this is enabled by default in sauron, but there is no easy way to accurately measure the time it takes to execute the dom patching, other than the benchmark code have to hook into the underlying code for each framework.

There should be a better way to measure it.
Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions