No description, website, or topics provided.
Ruby Elixir JavaScript HTML Shell CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
chat
images
rails
README.md
bench_phoenix.sh
bench_rails.sh
blerg.md
phoenix.xml
rails.xml
setup.sh

README.md

Setting up the servers

As root, run the following on both the tsung client server and phoenix/rails server:

$ ./setup.sh

Setting up Phoenix

$ cd chat/
$ mix deps.get
$ MIX_ENV=prod mix compile
$ MIX_ENV=prod PORT=4000 mix phoenix.server

Setting up Rails

$ cd rails/
$ bundle
$ bundle exec puma -e production -w 8

Running Benchmarks

To vary the number of rooms, users per room, and connections, you'll need to modify rails.xml, phoenix.xml, as well as rails/app/channels/rooms_channel.rb.

From the tsung client, to bench rails:

$ ./bench_rails.sh

From the tsung client, to bench phoenix:

$ ./bench_phoenix.sh