Skip to content

nebulab/rails-websocket-bench

Repository files navigation

Rails Websocket Bench

Setup

RAILS_ENV=production bin/setup
RAILS_ENV=production bundle exec rails assets:precompile
curl -Lo bin/anycable-go https://github.com/anycable/anycable-go/releases/download/v0.6.0/anycable-go-v0.6.0-linux-amd64 && \
  chmod +x bin/anycable-go

Start the bench application

Foreman is used in order to ease processes management with Procfiles.

Start with ActionCable as Websocket server

foreman start -e .env.production,.env.actioncable -f Procfile.actioncable

Start with AnyCable as Websocket server

foreman start -e .env.production,.env.anycable -f Procfile.anycable

Start the test suite

tsung -f tsung.xml -k start