dom-accessibility-api icon indicating copy to clipboard operation
dom-accessibility-api copied to clipboard

Performance to compute accessible name

Open HugoPoi opened this issue 2 years ago • 1 comments

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 avatar Nov 05 '23 23:11 HugoPoi

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

HugoPoi avatar Nov 07 '23 21:11 HugoPoi