Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Amethyst web framework benchmark

Here are result of Amethyst benchmarking with wrk:

./wrk -d 60 -t 10 -c 200 http://127.0.0.1:8080/
Running 1m test @ http://127.0.0.1:8080/
  10 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     5.24ms  548.04us  16.95ms   85.04%
    Req/Sec     3.83k   223.66     4.42k    82.93%
  2290956 requests in 1.00m, 9.71GB read
Requests/sec:  38157.50
Transfer/sec:    165.68MB

Application consists of standart middlewares, and page with text and image. Here are the code:

require "../src/all"

class TestController < Controller
  actions :index

	def index
		html "Hello world!<img src='/assets/amethyst.jpg'>"
  end
end


App.settings.configure do |conf|
  conf.environment = "production"  # use Cookie and Static files middleware
end

App.routes.draw do
  all  "/", "test#index"
  register TestController
end

app = App.new

app.serve

System - Manjaro Linux with 2Gb of Ram, processor:

Architecture:          i686
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 15
Model name:            Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
Stepping:              11
CPU MHz:               1596.000
CPU max MHz:           2394.0000
CPU min MHz:           1596.0000
BogoMIPS:              4802.47
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment