eps1lon / dom-accessibility-api

Implements https://w3c.github.io/accname/
MIT License
100 stars 29 forks source link

Performance to compute accessible name #1011

Open HugoPoi opened 1 year ago

HugoPoi commented 1 year ago

To be short, the actual code is very slow to compute accessible names.

I'm not sure if I read well the CI, I didn't read in the test code but I saw 159 passing (13s) so if it run only one time the function per test, it means it takes 80ms on average to compute the text.

Related issue in dom-testing-library. https://github.com/testing-library/dom-testing-library/issues/698#issuecomment-1793872539

Thanks a lot for all your work here, I will try to look how we can optimize the performance here but I will be in vacation next week.

HugoPoi commented 1 year ago

As promise serious testing materials https://github.com/HugoPoi/bug-perf-demo-getByRole/tree/main