Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client side measurement for Firefox, Chrome and Safari #1383

Open
krausest opened this issue Sep 27, 2023 · 0 comments
Open

Client side measurement for Firefox, Chrome and Safari #1383

krausest opened this issue Sep 27, 2023 · 0 comments

Comments

@krausest
Copy link
Owner

I prepared a test runner that uses the idea of afterframe.js to measure the duration in the browser.
This will create less precise results for chrome, but it would allow comparing chrome with firefox and safari.
You can try it via npm run bench -- --runner webdriver-afterframe --browser firefox|safari|chrome
For some reason safari doesn't work with localhost. You have set the HOST variable to your ip address like HOST=192.168.178.86 npm run bench -- --runner webdriver-afterframe .... safaridriver and geckodriver must be installed manually to run the tests.

I performed a run some time ago, but it needs some work for which I don't find the time:

  • Check the results. Considering the complexity getting the right duration for all the frameworks (like timers, rafs) I can't imagine afterframe.js gets them right. After that either the measurement should be improved otherwise some frameworks must be excluded.
  • Develop an idea what comparison is most interesting. Relative duration across the browsers for one implementation?

See also #1254

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

No branches or pull requests

1 participant