- On server:
ulimit -n 64000
MIX_ENV=prod mix phx.server
- On test runner (master):
ulimit -n 64000
iex --sname "runner" --cookie "elixir-casually" -S mix run -e 'Chaperon.Master.start()'
- On test runners (slave):
ulimit -n 64000
elixir --sname "runner" --cookie "elixir-casually" -S mix run --no-halt
- Run the test from the master runner:
LoadTester.run("http://localhost:5000", num_clients: 50, requests_per_sec: 1, duration: 10)
- server-1: n1-standard-2 (2 vCPUs, 7.5 GB memory)
- runner-1: n1-standard-1 (1 vCPU, 3.75 GB memory)
- runner-2: n1-standard-1 (1 vCPU, 3.75 GB memory)
- runner-3: n1-standard-1 (1 vCPU, 3.75 GB memory)
- runner-4: n1-standard-1 (1 vCPU, 3.75 GB memory)
- runner-5: n1-standard-1 (1 vCPU, 3.75 GB memory)
Req/s | Min - Ex | Min - Ruby | 95th - Ex | 95th - Rb | Max - Ex | Max - Rb |
---|---|---|---|---|---|---|
2,000 | 0 ms | 1 ms | 3 ms | 4 ms | 50 ms | 29 ms |
3,000 | 0 ms | 1 ms | 3 ms | 5 ms | 149 ms | 74 ms |
4,000 | 0 ms | 1 ms | 5 ms | 6 ms | 177 ms | 93 ms |
5,000 | 0 ms | 1 ms | 8 ms | 11 ms | 96 ms | 120 ms |
6,000 | 0 ms | 1 ms | 4 ms | 19 ms | 144 ms | 126 ms |
7,000 | 0 ms | 1 ms | 8 ms | 35 ms | 167 ms | 146 ms |
8,000 | 0 ms | 1 ms | 21 ms | 59 ms | 209 ms | 166 ms |
9,000 | 0 ms | 1 ms | 44 ms | 92 ms | 255 ms | 1,182 ms |
10,000 | 0 ms | 1 ms | 83 ms | 1,038 ms | 275 ms | 7,227 ms |
See Raw results for more details.
- Pipes
- Immutability
- Pattern matching & guards
- Umbrella apps & subapps
- GenServer
- Supervisor
- Swarm & clustering, auto spin up lots of load runners + node auto-discovery + test running + spin down
- Elixir core is written mostly (90%) in Elixir: https://github.com/elixir-lang/elixir
- https://www.thairath.co.th/content/1498811?fbclid=IwAR3IM7bMWpW6iMlxuZeFp9w_DOqyrUOV8gtTIXJDtfhMv4E98zDmhxVPhjI
Thanks to these fellas for making this meetup happen and their support in building this demo:
- Adhapol Vinn
- Pallop Chao
- Panumarch Anantachaiwanich
- Pii Boonchokchuay
- Pongsatorn Paewsoongnern
- Ranatchai Chernbamrung
- Supanat IBoss Potiwarakorn
- Wasawat Somno