Skip to content

Latest commit

 

History

History
88 lines (60 loc) · 2.53 KB

README.md

File metadata and controls

88 lines (60 loc) · 2.53 KB

Build Status

https://rubybench.org

Introduction

RubyBench was born out from Sam Saffron's call for a long running Ruby benchmark.

Benchmark Scripts

Ruby Scripts: https://github.com/ruby/ruby/tree/trunk/benchmark

Discourse Scripts: https://github.com/discourse/discourse/tree/master/script

The scripts are executed in a bare metal server using Docker containers to ensure consistent results. To view how the scripts are executed, head over to https://github.com/ruby-bench/ruby-bench-docker.

Hardware

Our current bare metal server is sponsored by the team over at RubyTune.com.

All benchmarks are run on a bare metal server in order to achieve consistent and repeatable results. We will not publish CPU results gathered on virtual hosts where we can not control our CPU allocation. The only results published are run on production level bare metal servers.

The bare metal server is purchased from Hetzner Online and has the following configurations:

System Type Component
Operating System Ubuntu-1404-trusty-64-minimal
RAM 4 x 8GB Micron ECC, Part Number: 18KSF1G72AZ-1G6E1
Processor 3.6GHz Intel® Xeon® E3-1270 v3 Quad-Core Haswell incl. Hyper-Threading Technology
Hard Drive 2 x Samsung SSD 845DC EVO - 240 GB - 2,5" SATA III
Motherboard Intel Coporation S1200RP

Contribute

Dependency

PostgreSQL 9.x in order to enable the hstore extension.

Redis

Setup

redis-server
bundle exec rake db:setup

# copy database.yml.example to database.yml and make sure you have correct configuration
cp config/database.yml.example config/database.yml

unicorn -c config/unicorn.rb

Testing

Install PhantomJS

Note: you can use directory other than $HOME

wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $HOME/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2

tar -xvf $HOME/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $HOME/phantomjs

export PATH=$HOME/phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH


# Check version installed

phantomjs -v

Start redis server if you haven't already

redis-server

Run tests

bundle exec rake test

Discussion

Discuss features and direction of project: http://community.rubybench.org