Foreword: Please do not start a discussion of premature optimization or anything related. I'm just trying to figure out what kind of performance I can get from a single server with rails.
I tested rubies on rails 3 and it seems that the highest query speed per second I can get is around 100 queries per second.
I used a phusion passenger with nginx and Ruby 1.8.7.
This is an instance of ec2 m1.large:
7.5 GB memory 4 EC2 Compute Units (2 virtual cores with 2 EC2 Compute Units each) 850 GB instance storage 64-bit platform I/O Performance: High API name: m1.large
The page was a very simple action that wrote a single line in mysql.
user = User.new user.name = "test" user.save
I do not assume caching (memcache, etc.), I just want to understand what raw numbers are.
I used the apache scanner on one instance of ec2, and I used different levels of # requests (from 1000 to 10000 and different numbers of simultaneous requests 1/5/10/25/50/100).
source share