Skip to content

Instantly share code, notes, and snippets.

@marktabler
Last active December 29, 2015 09:19
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marktabler/7649287 to your computer and use it in GitHub Desktop.
Save marktabler/7649287 to your computer and use it in GitHub Desktop.
Ruby API Framework Benchmarks
Sinatra 1.4.4
Rails 4.0.1
Rails-API 0.1.0
Rails-API disabled Mailer and Sockets
Each app connected to a MySQL database via ActiveRecord with an empty Accounts table; each app's root path responded with "#{Account.count} accounts detected."
Each app was configured to use Thin as its web server.
Benchmark command: siege -r 1000 -b http://localhost:3000
Transactions: 15000 hits
Availability: 100.00 %
Elapsed time: 39.67 secs
Data transferred: 0.29 MB
Response time: 0.04 secs
Transaction rate: 378.12 trans/sec
Throughput: 0.01 MB/sec
Concurrency: 14.98
Successful transactions: 15000
Failed transactions: 0
Longest transaction: 0.13
Shortest transaction: 0.01
Transactions: 15000 hits
Availability: 100.00 %
Elapsed time: 38.29 secs
Data transferred: 0.29 MB
Response time: 0.04 secs
Transaction rate: 391.75 trans/sec
Throughput: 0.01 MB/sec
Concurrency: 14.98
Successful transactions: 15000
Failed transactions: 0
Longest transaction: 0.14
Shortest transaction: 0.00
Transactions: 15000 hits
Availability: 100.00 %
Elapsed time: 14.65 secs
Data transferred: 0.29 MB
Response time: 0.01 secs
Transaction rate: 1023.89 trans/sec
Throughput: 0.02 MB/sec
Concurrency: 14.86
Successful transactions: 15000
Failed transactions: 0
Longest transaction: 0.13
Shortest transaction: 0.00
@ziggurat
Copy link

Care to share the code or adding padrino to this test suite? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment