Skip to content

ryanmcgary/channelsac

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 41.0%
  • Elixir 29.1%
  • JavaScript 14.8%
  • HTML 10.7%
  • Shell 3.1%
  • CSS 1.3%