I create the index.html file;
copying an HTML template from somewhere;
I add a script tag in which the code under test will live;
if you need to measure work with arrays, then you must create or take a ready-made random array generator.
The saddest thing is that the index.html file created earlier for testing is never at hand - the whole operation of preparing the test environment begins with the first item. For me, this is the last day.
If you need an array for the test, then we specify the data type and the number of elements.
Set the number of iterations of the code under test.
We copy HTML, for example, if you test work with DOM. You can also specify the option “on each iteration”, then the HTML will be updated with each iteration. All the markup "lives" on the right in the Context frame.
At the output we get:
the longest code execution time;
average for all challenges;
For the future:
instead of HTML text, specify the URL to a page on the Internet;
connect JS frameworks;
make a save test to play it in other browsers.
Thank you for your attention, waiting for your feedback;)