GithubHelp home page GithubHelp logo

isabella232 / ruby_benchmarks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jruby/ruby_benchmarks

0.0 0.0 0.0 63 KB

benchmarking some of the current Ruby frameworks, just for fun

Ruby 91.23% HTML 6.37% JavaScript 1.25% CoffeeScript 0.22% CSS 0.93%

ruby_benchmarks's Introduction

Frameworks tested:

How to

For Agoo version I'm running the server with RACK_ENV=production ruby app.rb ... because I don't know how else run it.

For Hanami version HANAMI_ENV=production rackup -q

For Rails versions RAILS_ENV=production rackup -q

For ruby versions not supporting JIT

RACK_ENV=production rackup -q

For ruby versions supporting JIT

RUBYOPT="--jit" RACK_ENV=production rackup -q

For Jruby version JIT sore is calculated with -Xcompile.invokedynamic flag

RUBYOPT="-Xcompile.invokedynamic" RACK_ENV=production rackup -q

The score is calculated by running 4 times wrk -t4 -c100 -d30s http://localhost:9292/

The first time is for warming up and then I'm getting the average score of the 3 next rounds

Note

For JRuby version I did run the benchmarker 5 times since it takes about 2 rounds to warm up and give stable results.

For JRuby version with -Xcompile.invokedynamic it took about 3 rounds to warm up so I had to run the benchmarker 6 times to get stable results.

Results are as above:

Running in a MacBook Pro 3.5 GHz Intel Core i7 16 GB 2133 MHz LPDDR3

Score is the number of requests per second.


ruby version framework score JIT score
2.5.3p105 agoo 1182809 -
hanami 276210 -
padrino 294171 -
rails_api 3902 -
rails 3175 -
roda 513080 -
sinatra 338932 -
2.6.0-rc1 agoo 1056793 -
hanami 303779 271650
padrino 306023 267273
rails_api 3865 2503
rails 3007 1877
roda 513691 462229
sinatra 350493 334544
jruby-9.2.5.0 agoo - -
hanami - -
padrino 358410 459537
rails_api - -
rails - -
roda 714487 846178
sinatra 463915 643856

ruby_benchmarks's People

Contributors

cads avatar headius avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.