tree: 1f29f60af6177c0eb700b334009d5646bed23b49 [path history] [tgz]
  1. docs-paper.html
  2. docs-resume.html
  3. docs-table.html
  4. performance.js
  5. README.md
  6. RunAllTests.html
  7. sheets-render.html
  8. ShowResults.html
  9. utils.js
third_party/blink/manual_tests/canvas/README.md

Canvas Manual Performance Tests

How to run the tests

Start Chromium with --disable-frame-rate-limit --enable-precise-memory-info. Open RunAllTests.html. The tests should run automatically until the final green result page.

How to add tests to this set

Create a HTML-based test that renders a canvas with requestAnimationFrame. Add the following to the document's <head>:

  <meta charset="utf-8">
  <script src="performance.js" type="module"></script>

This already enables all the infrastructure needed for performance measurement. To add the test to the list of all tests that are usually run, include it in the TESTS list of RunAllTests.html.

If you also want to enable scroll tests (where the page keeps scrolling in both axes while measuring, add a new entry with ?scroll appended to it.