phoenix_vs_rails_showdown

  • 所有者: chrismccord/phoenix_vs_rails_showdown
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Benchmarking Phoenix vs Rails (WIP)

Machine: MacBook Pro Intel Core i7 (2.7 GHz 4 Cores) 16 GB RAM

Benchmarking Phoenix

Elixir 0.14.2

$ mix do deps.get, compile
$ MIX_ENV=prod mix compile.protocols
$ MIX_ENV=prod elixir -pa _build/prod/consolidated -S mix phoenix.start
Running Elixir.Benchmarker.Router with Cowboy on port 4000

$ wrk -t4 -c100 -d30S --timeout 2000 "http://127.0.0.1:4000/showdown"
Running 30s test @ http://127.0.0.1:4000/showdown
  4 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     4.80ms    2.18ms  54.70ms   98.36%
    Req/Sec     5.61k   755.82     8.00k    71.80%
  639868 requests in 30.00s, 1.31GB read
Requests/sec:  21329.21
Transfer/sec:     44.75MB

Benchmarking Rails

MRI 2.1.2

$ bundle
$ PUMA_WORKERS=4 MIN_THREADS=1 MAX_THREADS=16 RACK_ENV=production bundle exec puma
[51026] Puma starting in cluster mode...
[51026] * Version 2.8.2 (ruby 2.1.2-p95), codename: Sir Edmund Percival Hillary
[51026] * Min threads: 1, max threads: 16
[51026] * Environment: production
[51026] * Process workers: 4
[51026] * Preloading application
[51026] * Listening on tcp://0.0.0.0:3000
[51026] Use Ctrl-C to stop
[51027] + Gemfile in context: /Users/goyox86/Code/phoenix_vs_rails_showdown/rails/benchmarker/Gemfile
[51028] + Gemfile in context: /Users/goyox86/Code/phoenix_vs_rails_showdown/rails/benchmarker/Gemfile
[51026] - Worker 0 (pid: 51027) booted, phase: 0
[51029] + Gemfile in context: /Users/goyox86/Code/phoenix_vs_rails_showdown/rails/benchmarker/Gemfile
[51026] - Worker 1 (pid: 51028) booted, phase: 0
[51026] - Worker 2 (pid: 51029) booted, phase: 0
[51030] + Gemfile in context: /Users/goyox86/Code/phoenix_vs_rails_showdown/rails/benchmarker/Gemfile
[51026] - Worker 3 (pid: 51030) booted, phase: 0

$ wrk -t4 -c100 -d30S --timeout 2000 "http://127.0.0.1:3000/showdown"
Running 30s test @ http://127.0.0.1:3000/showdown
  4 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    29.48ms   12.55ms 125.61ms   72.21%
    Req/Sec   493.61    150.85   800.00     57.17%
  57720 requests in 30.00s, 128.95MB read
Requests/sec:   1923.86
Transfer/sec:      4.30MB

主要指标

概览
名称与所有者chrismccord/phoenix_vs_rails_showdown
主编程语言Ruby
编程语言Elixir (语言数: 4)
平台
许可证
所有者活动
创建于2014-07-05 01:34:42
推送于2015-01-17 18:10:45
最后一次提交2014-07-10 15:59:26
发布数0
用户参与
星数22
关注者数2
派生数3
提交数12
已启用问题?
问题数1
打开的问题数1
拉请求数1
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?