[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

Review URL: https://codereview.appspot.com/226870043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk@862 4ff78f4a-9131-11de-b045-6380ec9940d4
10 files changed
tree: e8280499593d07abde14ca14986cd7e126070ab9
  1. src/