Skip to content

Instantly share code, notes, and snippets.

@savonarola
Last active December 11, 2015 14:08
Show Gist options
  • Save savonarola/4612186 to your computer and use it in GitHub Desktop.
Save savonarola/4612186 to your computer and use it in GitHub Desktop.
Отгрузка списка ~200 небольших записей такого вида: rails g scaffold Post title body:text. Работа с бд в обоих случаях заняла пренебрежимо мало
1.9.3-p194-perf, rails, 10 unicorns
>siege -r 200 -c 10 -d 0 'http://localhost:9080/posts'
** SIEGE 2.72
** Preparing 10 concurrent users for battle.
The server is now under siege.. done.
Transactions: 2000 hits
Availability: 100.00 %
Elapsed time: 117.59 secs
Data transferred: 103.94 MB
Response time: 0.59 secs
Transaction rate: 17.01 trans/sec
Throughput: 0.88 MB/sec
Concurrency: 9.98
Successful transactions: 2000
Failed transactions: 0
Longest transaction: 0.83
Shortest transaction: 0.35
jruby-1.7.1, threaded rails, torquebox
>siege -r 200 -c 10 -d 0 'http://localhost:8080/posts'
** SIEGE 2.72
** Preparing 10 concurrent users for battle.
The server is now under siege.. done.
Transactions: 2000 hits
Availability: 100.00 %
Elapsed time: 204.87 secs
Data transferred: 103.95 MB
Response time: 1.02 secs
Transaction rate: 9.76 trans/sec
Throughput: 0.51 MB/sec
Concurrency: 9.96
Successful transactions: 2000
Failed transactions: 0
Longest transaction: 1.94
Shortest transaction: 0.46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment