Skip to content

test(motion): add performance benchmark for spring vs linear easing at 60fps #3289

Description

@tmdeveloper007

Summary of What Needs to be Done

Add a performance benchmark test to packages/motion/src/ that compares the execution time of spring easing, linear easing, and easeInOut easing at simulated 60fps render cycles (16.67ms per frame).

Changes that Need to be Made

  • Create packages/motion/src/easing-benchmark.test.ts
  • Benchmark spring() animation tick (one frame) vs linear() tick vs easeInOut() tick
  • Run 10,000 iterations of each and record average time per tick
  • Assert that all three complete within reasonable time bounds (< 1ms per tick)

Impact that it would Provide

  • Provides quantitative evidence of animation performance characteristics
  • Helps detect performance regressions in easing implementations
  • Documents expected performance envelope for CI regression checks

Note: Please assign this issue to the tmdeveloper007 account.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

assignedIssue claimed by a contributor.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions