https://github.com/pandawhisperer/phoenix-benchmark
Simple Phoenix app for benchmarking
https://github.com/pandawhisperer/phoenix-benchmark
elixir elixir-lang phoenix phoenix-benchmark
Last synced: 2 months ago
JSON representation
Simple Phoenix app for benchmarking
- Host: GitHub
- URL: https://github.com/pandawhisperer/phoenix-benchmark
- Owner: PandaWhisperer
- Created: 2016-11-06T23:43:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-06T23:43:18.000Z (over 9 years ago)
- Last Synced: 2025-03-11T11:52:54.804Z (over 1 year ago)
- Topics: elixir, elixir-lang, phoenix, phoenix-benchmark
- Language: JavaScript
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phoenix Benchmark
A simple app to benchmark Phoenix against [common Ruby API frameworks][bench].
## Running
You'll need Elixir installed in order to run this app.
See [Installing Elixir][ix] for more information.
On macOS using [HomeBrew][brew], you can install it using `brew install elixir`.
1. Clone the project
2. Install dependencies with `mix deps.get`
3. Start the server with `mix phoenix.server`
4. Run benchmarks:
Empty page:
```
wrk -t 2 -c 10 -d 3m -H "Accept: application/json" http://localhost:4000/empty
```
JSON numbers 1-1000:
```
wrk -t 2 -c 10 -d 3m -H "Accept: application/json" http://localhost:4000/numbers/1000
```
[bench]: https://github.com/davidcelis/api-benchmarks
[ix]: http://elixir-lang.org/install.html
[brew]: https://brew.sh