I've taken the benchmarks from Matthew Rothenberg's phoenix-showdown, updated Phoenix to 0.13.1 and ran the tests on the most powerful machines available at Rackspace.
Framework | Throughput (req/s) | Latency (ms) | Consistency (σ ms) |
---|
#!/bin/bash | |
mkdir /opt/redis | |
#RedisVersion=2.2.14 | |
RedisVersion=2.4.8 | |
wget http://redis.googlecode.com/files/redis-$RedisVersion.tar.gz | |
tar -zxvf redis-$RedisVersion.tar.gz | |
cd redis-$RedisVersion |
var signForm = $.ajax({ | |
type: "POST", | |
url: "/some/form", | |
dataType: "JSON", | |
data: myData | |
}); | |
signForm.done(function(response){ | |
// handle success here | |
}); |
class Person | |
include ActiveModel::Serialization | |
include ActiveModel::Serializers::JSON | |
attr_accessor :name, :email | |
def initialize(attributes = {}) | |
attributes.each do |name, value| | |
send("#{name}=", value) | |
end |
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name=$inputline | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url=$inputline |
alias gst='git status' | |
compdef _git gst=git-status | |
alias gd='git diff' | |
compdef _git gd=git-diff | |
alias gl='git pull' | |
compdef _git gl=git-pull | |
alias gp='git push' | |
compdef _git gp=git-push | |
alias gc='git commit -v' | |
compdef _git gc=git-commit |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
full = "★" | |
empty = "☆" | |
battery = "🔋" | |
plug = "⚡" | |
star_count = 5 | |
per_star = 100/star_count |
I've taken the benchmarks from Matthew Rothenberg's phoenix-showdown, updated Phoenix to 0.13.1 and ran the tests on the most powerful machines available at Rackspace.
Framework | Throughput (req/s) | Latency (ms) | Consistency (σ ms) |
---|
defmodule ROP do | |
defmacro try_catch(args, func) do | |
quote do | |
(fn -> | |
try do | |
unquote(args) |> unquote(func) | |
rescue | |
e -> {:error, e} | |
end |
defmodule Config do | |
@moduledoc """ | |
This module handles fetching values from the config with some additional niceties | |
""" | |
@doc """ | |
Fetches a value from the config, or from the environment if {:system, "VAR"} | |
is provided. | |
An optional default value can be provided if desired. |
FROM bitwalker/alpine-erlang:latest | |
MAINTAINER Paul Schoenfelder <[email protected]> | |
ENV REFRESHED_AT=2016-06-21 \ | |
HOME=/opt/app/ \ | |
MIX_ENV=prod \ | |
TERM=xterm \ | |
APP=myapp \ | |
APPVER=0.1.0 |