[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/src@862 4ff78f4a-9131-11de-b045-6380ec9940d4
10 files changed