Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

Benckmark

hiroshige-g edited this page Aug 31, 2015 · 2 revisions

Benchmark using benchmark.html

  • Checkout the latest pywebsocket
$ git clone https://github.com/google/pywebsocket.git
$ cd pywebsocket
  • Open setup.py using some editor and set _USE_FAST_MASKING to True
  • Build the extension
$ ./setup.py build_ext --inplace
  • Launch pywebsocket
$ PYTHONPATH=. python mod_pywebsocket/standalone.py -p <port> -d example
  • Navigate your browser to localhost:<port>/benchmark.html

Benchmark using console.html

  • Open console.html
  • Connect to the resource "ws://<host>:<port>/echo_noext".
  • Check "Show time stamp"
  • Specify some big file and click send file.
Clone this wiki locally