Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(699)

Issue 226870043: [benchmark] Add Fetch API performance tests. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years ago by hiroshige
Modified:
8 years, 8 months ago
CC:
pywebsocket-reviews_googlegroups.com
Base URL:
http://pywebsocket.googlecode.com/svn/trunk/
Visibility:
Public.

Description

[benchmark] Add Fetch API performance tests. - Introduces initWorker() and doAction(), and move common code to util.js. - Changes verifyBlob's doneCallback arguments to match with fetch()'s promises. - Adds 'Access-Control-Allow-Origin: *' header to XHR/fetch responses because cross-origin fetch() without such headers is not allowed even with --disable-web-security. R=tyoshino@chromium.org Committed: https://code.google.com/p/pywebsocket/source/detail?r=862

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 24

Patch Set 7 : #

Patch Set 8 : Rebase. #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 6

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+569 lines, -324 lines) Patch
M src/example/benchmark.html View 1 2 3 4 5 6 7 2 chunks +12 lines, -44 lines 0 comments Download
M src/example/benchmark.js View 1 2 3 4 5 6 7 4 chunks +1 line, -92 lines 0 comments Download
A src/example/fetch_benchmark.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +165 lines, -0 lines 0 comments Download
A src/example/fetch_benchmark.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +225 lines, -0 lines 0 comments Download
M src/example/util.js View 1 2 3 4 5 6 7 8 2 chunks +141 lines, -0 lines 0 comments Download
M src/example/util_main.js View 1 2 3 4 5 6 7 1 chunk +0 lines, -11 lines 0 comments Download
M src/example/util_worker.js View 1 2 3 4 5 6 7 1 chunk +11 lines, -14 lines 0 comments Download
M src/example/xhr_benchmark.html View 1 2 3 4 5 6 7 2 chunks +11 lines, -44 lines 0 comments Download
M src/example/xhr_benchmark.js View 1 2 3 4 5 6 7 8 3 chunks +1 line, -119 lines 0 comments Download
M src/mod_pywebsocket/xhr_benchmark_handler.py View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9
hiroshige
PTAL. This is for adding Fetch()/XHR benchmarks to the performance bots.
9 years ago (2015-04-09 07:32:47 UTC) #1
hiroshige
ping.
9 years ago (2015-04-23 11:16:52 UTC) #2
tyoshino (chromium.org)
On 2015/04/23 11:16:52, hiroshige wrote: > ping. Sorry. I'm reviewing this now. Please feel free ...
9 years ago (2015-04-24 04:03:22 UTC) #3
tyoshino (chromium.org)
https://codereview.appspot.com/226870043/diff/100001/src/example/fetch_benchmark.html File src/example/fetch_benchmark.html (right): https://codereview.appspot.com/226870043/diff/100001/src/example/fetch_benchmark.html#newcode21 src/example/fetch_benchmark.html:21: numXHRs: getIntFromInput('numXHRs'), numFetches https://codereview.appspot.com/226870043/diff/100001/src/example/fetch_benchmark.html#newcode32 src/example/fetch_benchmark.html:32: // minTotal is not ...
9 years ago (2015-04-24 07:18:43 UTC) #4
hiroshige
https://codereview.appspot.com/226870043/diff/100001/src/example/fetch_benchmark.html File src/example/fetch_benchmark.html (right): https://codereview.appspot.com/226870043/diff/100001/src/example/fetch_benchmark.html#newcode21 src/example/fetch_benchmark.html:21: numXHRs: getIntFromInput('numXHRs'), On 2015/04/24 07:18:42, tyoshino (chromium.org) wrote: > ...
8 years, 9 months ago (2015-07-29 08:41:56 UTC) #5
hiroshige
ping. I want to complete the review before pywebsocket migration which will start this week.
8 years, 8 months ago (2015-08-18 04:25:57 UTC) #6
tyoshino (chromium.org)
lgtm! https://codereview.appspot.com/226870043/diff/280001/src/example/fetch_benchmark.html File src/example/fetch_benchmark.html (right): https://codereview.appspot.com/226870043/diff/280001/src/example/fetch_benchmark.html#newcode22 src/example/fetch_benchmark.html:22: async: getBoolFromCheckBox('async'), unnecessary for fetch? https://codereview.appspot.com/226870043/diff/280001/src/example/fetch_benchmark.html#newcode99 src/example/fetch_benchmark.html:99: (Receive ...
8 years, 8 months ago (2015-08-19 09:09:52 UTC) #7
hiroshige
Thank you for reviewing! https://codereview.appspot.com/226870043/diff/280001/src/example/fetch_benchmark.html File src/example/fetch_benchmark.html (right): https://codereview.appspot.com/226870043/diff/280001/src/example/fetch_benchmark.html#newcode22 src/example/fetch_benchmark.html:22: async: getBoolFromCheckBox('async'), On 2015/08/19 09:09:51, ...
8 years, 8 months ago (2015-08-19 09:55:04 UTC) #8
hiroshige
8 years, 8 months ago (2015-08-19 09:57:13 UTC) #9
Message was sent while issue was closed.
Committed patchset #12 (id:300001) manually as r862 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b