An open API service indexing awesome lists of open source software.

https://github.com/nebulab/rails-websocket-bench


https://github.com/nebulab/rails-websocket-bench

actioncable anycable benchmarks ruby ruby-on-rails websocket-server

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# Rails Websocket Bench

## Setup

```bash
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`](https://github.com/ddollar/foreman) is used in order to ease processes management with Procfiles.

### Start with ActionCable as Websocket server

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

### Start with AnyCable as Websocket server

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

## Start the test suite

```bash
tsung -f tsung.xml -k start
```