Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Apr 26, 2013
1 parent 9d931cb commit 230dae9
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions myapp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

To reproduce:

0. Install redis locally and checkout the Sidekiq repo:
Install redis locally and checkout the Sidekiq repo:

```
git clone git://github.com/mperham/sidekiq
cd sidekiq/myapp
bundle
```

1. Load lots of jobs into Redis:
Load lots of jobs into Redis, you can edit Rakefile to change the job
count:

```
> time bundle exec rake load_jobs
Expand All @@ -21,8 +22,7 @@ user 0m45.037s
sys 0m3.558s
```

2. Start Sidekiq with 200 worker threads to process those jobs. You will need to kill Sidekiq
with Ctrl-C as soon as log messages stop flying by.
Start Sidekiq with 200 worker threads to process those jobs. You will need to kill Sidekiq with Ctrl-C as soon as log messages stop flying by.

```
> time bundle exec sidekiq -c 200
Expand All @@ -38,6 +38,24 @@ sys 0m3.558s
real 3m37.921s
user 3m3.110s
sys 1m4.783s
> ruby -v
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.3.0]
```

3. Now try with various Rubies to see how your choice in VM performs.
Now try with various Rubies to see how your choice in VM performs.

```
2013-04-26T15:57:04Z 67357 TID-ow0muevo8 EmptyWorker JID-cb03f00310af3590009b19fe INFO: done: 0.189 sec
2013-04-26T15:57:04Z 67357 TID-ow0muqgxc EmptyWorker JID-89710c72bf4a343834833bc4 INFO: done: 0.19 sec
2013-04-26T15:57:04Z 67357 TID-ow0ms6rc4 EmptyWorker JID-bb358d8d8f02af9734b8a3ff INFO: done: 0.186 sec
2013-04-26T15:57:04Z 67357 TID-ow0mwn908 EmptyWorker JID-7c032c55e6ab9a63dc31f175 INFO: done: 0.188 sec
2013-04-26T15:57:04Z 67357 TID-ow0mv6m80 EmptyWorker JID-73dc04f9e431ebf433707d02 INFO: done: 0.188 sec
^C2013-04-26T15:57:11Z 67357 TID-ow0m8kxh4 INFO: Shutting down
2013-04-26T15:57:11Z 67357 TID-ow0mwqr20 INFO: Shutting down 200 quiet workers
real 5m55.033s
user 5m6.156s
sys 1m4.886s
> ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]
```

0 comments on commit 230dae9

Please sign in to comment.