mandar1045

mandar1045

Stampede 1.3 is out. It’s the load tester I’ve been building for Phoenix, and this release is about using it on real apps.

What’s new

  • mix stampede.record starts your app, you click through it in a browser, and you get a scenario with your clicks, forms, uploads, channels, navigation and pauses. Signing in works too: it goes through the real form with a fresh CSRF token, and each VU keeps its own session. Passwords become "CHANGE_ME", so they don’t end up in a file you might commit. I tried it in real Firefox on a phx.gen.auth app.
  • --probe app@host shows what’s happening inside your app during a run: scheduler use, memory, processes, run queue and the longest message queues, plus Phoenix, LiveView and Ecto timings measured by the app itself. The app needs no changes, and a --find-limit verdict now says when the server’s schedulers ran out.
  • Stampede.LLM load tests anything that speaks OpenAI’s format, such as Ollama, vLLM or llama.cpp, and records time to first token and the gaps between tokens.
  • Stampede.SSE reads Server-Sent Events from any server, with when each event arrived.
  • Stampede.HTTP keeps cookies with cookies: true, sends forms with form:, and reads a page’s token with csrf_token/1. Stampede.LiveView.connect/2 shares those cookies, so a scenario can sign in over HTTP and then open a LiveView as that user.
  • keep: on Stampede.Channels.connect/2 is for VUs in busy channels that hear far more than they read.
  • There’s a new guide to watching a run in Prometheus and Grafana.

Tested on AWS

On one 4-core, 32 GB machine, with three more running Stampede:

  • Stock Phoenix held 600,000 Channels users, with joins in 31ms and messages in 10ms at p95.
  • A real open source Phoenix product, self-hosted from its official release, held 50,000 users for 10 minutes, with 100 users in each channel, 80.9 million messages and a round trip of 5.71ms at p95.

Everything to rerun them is in bench/million, with every number they produced.

Repo:

Docs: https://stampede.hexdocs.pm

If you try it on your app, I’d love to hear what breaks, in Stampede or in your app.

Where Next? Top

Trending in News & Updates Top

mat-hek
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn: This is possible because it now builds on a very stab...
New
danj
Some root certs are compromised, updates are needed to maintain TLS security. As reported by Mozilla the eMudhra intermediate CA privat...
New
mandar1045
Stampede 1.2 is out, and I finally got to try it at a bigger scale. What’s new --find-limit: instead of a fixed number of users, it add...
New
mikehostetler
ReqLLM v1.29.0 has been released. Security update ReqLLM 1.29.0 fixes GHSA-6vww-5m28-f26v. Versions 1.9.0 through 1.28.0 did not verify ...
New
uzaydurdu
Hey Elixir folks, I’ve been working on Xenia 0.2.0, and it’s nearly ready. This release focuses on performance, easier integration, and...
New
rodloboz
Hi all, I’ve just released Sake 0.5.0, and I want to explain better what it’s for, because I think many Phoenix apps can use it now. Wh...
New
Potions
I’m working to make Potions the easiest way to deploy Elixir applications, and the next step in that journey is live: you can now bring y...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews