Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 1000203002: Add second batch JS benchmark and code generator (Closed)

Created:
5 years, 9 months ago by Sami
Modified:
5 years, 9 months ago
Reviewers:
rmcilroy
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://chromium.googlesource.com/chromium/src/+/fde4fdf9426ed695a242b90c44db8ebb2f0113a2

Patch Set 1 #

Patch Set 2 : Test automation. #

Patch Set 3 : Three variants. #

Patch Set 4 : Beautification. #

Total comments: 21

Patch Set 5 : Review feedback. #

Patch Set 6 : Add licenses. #

Patch Set 7 : Rebased, cleaned up license printing. #

Patch Set 8 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -3 lines) Patch
M tools/perf/page_sets/tough_scheduling_cases.py View 1 2 3 4 5 6 7 4 chunks +36 lines, -3 lines 0 comments Download
A tools/perf/page_sets/tough_scheduling_cases/generate_second_batch_js.sh View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
A tools/perf/page_sets/tough_scheduling_cases/second_batch_js.html View 1 2 3 4 5 6 7 1 chunk +117 lines, -0 lines 0 comments Download
A tools/perf/page_sets/tough_scheduling_cases/second_batch_js_generator.py View 1 2 3 4 5 6 7 1 chunk +169 lines, -0 lines 0 comments Download
A tools/perf/page_sets/tough_scheduling_cases/second_batch_js_light.min.js View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
A tools/perf/page_sets/tough_scheduling_cases/second_batch_js_medium.min.js View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
Sami
PTAL. Note the heavy JS didn't survive the upload so I'll need to land this ...
5 years, 9 months ago (2015-03-13 12:11:03 UTC) #2
rmcilroy
A couple of questions and some nits but otherwise looks great! Thanks. https://codereview.chromium.org/1000203002/diff/50001/tools/perf/page_sets/tough_scheduling_cases.py File tools/perf/page_sets/tough_scheduling_cases.py ...
5 years, 9 months ago (2015-03-17 13:59:37 UTC) #3
Sami
Thanks, everything addressed. https://codereview.chromium.org/1000203002/diff/50001/tools/perf/page_sets/tough_scheduling_cases.py File tools/perf/page_sets/tough_scheduling_cases.py (right): https://codereview.chromium.org/1000203002/diff/50001/tools/perf/page_sets/tough_scheduling_cases.py#newcode398 tools/perf/page_sets/tough_scheduling_cases.py:398: action_runner.Wait(.3) On 2015/03/17 13:59:36, rmcilroy wrote: ...
5 years, 9 months ago (2015-03-18 14:05:32 UTC) #4
rmcilroy
looks great, thanks. lgtm. https://codereview.chromium.org/1000203002/diff/50001/tools/perf/page_sets/tough_scheduling_cases/second_batch_js_generator.py File tools/perf/page_sets/tough_scheduling_cases/second_batch_js_generator.py (right): https://codereview.chromium.org/1000203002/diff/50001/tools/perf/page_sets/tough_scheduling_cases/second_batch_js_generator.py#newcode106 tools/perf/page_sets/tough_scheduling_cases/second_batch_js_generator.py:106: _GenerateInnerFunction( On 2015/03/18 14:05:31, Sami ...
5 years, 9 months ago (2015-03-19 12:07:39 UTC) #5
Sami
On 2015/03/19 12:07:39, rmcilroy wrote: > looks great, thanks. lgtm. > > https://codereview.chromium.org/1000203002/diff/50001/tools/perf/page_sets/tough_scheduling_cases/second_batch_js_generator.py > File ...
5 years, 9 months ago (2015-03-19 12:13:56 UTC) #6
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/b0a90f4b6c81fc65dd0c57ebc00b0ba6fe784b22 Cr-Commit-Position: refs/heads/master@{#321340}
5 years, 9 months ago (2015-03-19 12:33:00 UTC) #7
Sami
Committed patchset #5 (id:60001) manually as b0a90f4b6c81fc65dd0c57ebc00b0ba6fe784b22.
5 years, 9 months ago (2015-03-19 12:33:14 UTC) #8
kjellander_chromium
A revert of this CL (patchset #5 id:60001) has been created in https://codereview.chromium.org/1019833002/ by kjellander@chromium.org. ...
5 years, 9 months ago (2015-03-19 12:53:23 UTC) #9
Sami
On 2015/03/19 12:53:23, kjellander wrote: > A revert of this CL (patchset #5 id:60001) has ...
5 years, 9 months ago (2015-03-19 13:31:56 UTC) #10
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/fde4fdf9426ed695a242b90c44db8ebb2f0113a2 Cr-Commit-Position: refs/heads/master@{#321363}
5 years, 9 months ago (2015-03-19 16:01:25 UTC) #11
Sami
5 years, 9 months ago (2015-03-19 16:01:29 UTC) #12
Message was sent while issue was closed.
Committed patchset #8 (id:90001) manually as
fde4fdf9426ed695a242b90c44db8ebb2f0113a2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698