[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
tree: 87e411a00587a702c2afff49d302933f3ea830f4
  1. example/
  2. mod_pywebsocket/
  3. test/
  4. COPYING
  5. MANIFEST.in
  6. README
  7. setup.py