Add second batch JS benchmark and code generator
This patch adds a "Second batch JS" benchmark and a code generator for creating synthetic Javascript content for the different variants of the benchmark. The benchmark flow is: 1. Load an initial page quickly. We also start a continuous animation which gauges the responsiveness of the main thread. 2. Start loading Javascript asynchronously. 3. When the loading completes, wait 1 second and click on a button which causes about 5% of the Javascript to execute. The aim is to keep the page responsive during loading and minimize the latency of the click handler. There are three variants with a small (15K), medium (150K) and large (1.2M) amount of Javascript. The generated Javascript consists of half top-level closures, half top-level functions, each of which calls a varying number of inner functions to perform arithmetic. Note that currently the benchmark only measures the responsiveness of the click handler, but eventually it will be able to track this over the entire interaction flow (crbug.com/460206). BUG=428350 R=rmcilroy@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/b0a90f4b6c81fc65dd0c57ebc00b0ba6fe784b22 Review URL: https://codereview.chromium.org/1000203002 Cr-Commit-Position: refs/heads/master@{#321363}
Showing
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
Please register or sign in to comment