PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > [ANN] Thin 0.5.1 LOLCAT released
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
[ANN] Thin 0.5.1 LOLCAT released

Réponse
 
LinkBack Outils de la discussion
Vieux 08/01/2008, 06h09   #1
Marc-andre Marc
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut [ANN] Thin 0.5.1 LOLCAT released

Hey all,
Version 0.5.1 (codename LOLCAT) of the fastest Ruby server is out!
Thin is a Ruby web server that glues together 3 of the best Ruby
libraries in web history:
* the Mongrel parser: the root of Mongrel speed and security
* Event Machine: a network I/O library with extremely high scalability,
performance and stability
* Rack: a minimal interface between webservers and Ruby frameworks
Which makes it, with all humility, the most secure, stable, fast and
extensible Ruby web server
bundled in an easy to use gem for your own pleasure.
== What's new?
Even though Thin has been made public only 4 days ago, lots of things
have happened since:
* Ruby 1.9 compatibility
* Better Rails adapter
* Thin support included in Ramaze and Vintage frameworks (Thin can also
run Rails, Camping, Merb and more)
* Some bug fixes in header parsing
And some amazing numbers:
[~/projects/thin] ruby benchmark/simple.rb
server request concurrency req/s failures
================================================== ===
WEBrick 1000 1 389.31 0
Mongrel 1000 1 1495.70 0
EMongrel 1000 1 2070.35 0
Thin 1000 1 2219.45 0
WEBrick 1000 10 366.16 0
Mongrel 1000 10 1501.02 0
EMongrel 1000 10 2562.43 0
Thin 1000 10 3129.64 0
WEBrick 1000 100 ERROR
Mongrel 1000 100 1500.82 0
EMongrel 1000 100 3031.29 0
Thin 1000 100 3372.49 0
[~/projects/thin] ruby19 benchmark/simple.rb
server request concurrency req/s failures
================================================== ===
WEBrick 1000 1 506.33 0
Mongrel 1000 1 1768.31 0
Thin 1000 1 2528.11 0
WEBrick 1000 10 461.66 0
Mongrel 1000 10 1541.35 0
Thin 1000 10 4003.19 0
WEBrick 1000 100 ERROR
Mongrel 1000 100 1313.19 0
Thin 1000 100 4154.67 0
== Get it!
sudo gem install thin
(Might take some time for the gem mirrors to be updated, try adding
--source http://code.macournoyer.com to the command if it doesn't work)
== Contribute
Thin is driven by an active community of passionate coders and
benchmarkers. Please join us, contribute
or share some ideas in Thin Google Group:
http://groups.google.com/group/thin-ruby/topics
Also on IRC: #thin on freenode
Thanks to all the people who contributed to Thin, EventMachine, Rack and
Mongrel.
Marc-Andre Cournoyer
http://code.macournoyer.com/thin/
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 08/01/2008, 06h54   #2
s.ross
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [ANN] Thin 0.5.1 LOLCAT released

On Jan 7, 2008, at 10:09 PM, Marc-andre Marc wrote:

> And some amazing numbers:
> [~/projects/thin] ruby benchmark/simple.rb
> server request concurrency req/s failures
> ================================================== ===
> Thin 1000 1 2219.45 0


Very cool. I just benchmarked (very crude localhost-only numbers) a
form page in Rails that hits a MySQL database. I would have expected
database and template rendering to be a far bigger factor, but here
are the numbers on my mbp (Ruby 1.8.6p111):

mongrel n=1000 c = 1 : 44.45
thin n=1000 c = 1 : 51.29
mongrel n=1000 c = 10 : 40.12
thin n=1000 c = 10 : 51.27
mongrel n=1000 c = 100 : 35.94
thin n=1000 c = 100 : 50.86

Now, I can't serve as many pages as you can (2200+!), but 50r/s is
still over 4 million pages served per day. I'm sure with a "thin
cluster," you can pretty much serve pages at will!


  Réponse avec citation
Vieux 08/01/2008, 10h24   #3
Ollivier Robert
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [ANN] Thin 0.5.1 LOLCAT released

In article <80115978203f21faee3d098626d2558b@ruby-forum.com>,
Marc-andre Marc <macournoyer@gmail.com> wrote:
> * Ruby 1.9 compatibility


Good!

> * Better Rails adapter


Is rails 1.2.6 compatible with 1.9 BTW or do I need to move on to Rails2? My
main site is built with RadiantCMS and I'd like to move to 1.9... (yes I
understand it is development but I follow 1.9/trunk already anyway).

Is there IPv6 support for thin? I can run a plain mongrel server on ::1 but
thin seems to puke.

Thanks for thin!
--
Ollivier ROBERT -=- EEC/RIF/SEU -=-
Systems Engineering Unit
  Réponse avec citation
Vieux 08/01/2008, 10h36   #4
Xavier Noria
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [ANN] Thin 0.5.1 LOLCAT released

On Jan 8, 2008, at 11:25 AM, Ollivier Robert wrote:

> Is rails 1.2.6 compatible with 1.9 BTW or do I need to move on to
> Rails2? My
> main site is built with RadiantCMS and I'd like to move to 1.9...
> (yes I
> understand it is development but I follow 1.9/trunk already anyway).


Rails is not 1.9 compatible at this moment, this is work in progress
in edge.

-- fxn


  Réponse avec citation
Vieux 08/01/2008, 11h49   #5
Joachim Glauche
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [ANN] Thin 0.5.1 LOLCAT released

Marc-andre Marc wrote:
> http://code.macournoyer.com/thin/


Does your website use Thin?

I get a timeout...
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 08/01/2008, 12h27   #6
Marc-andre Marc
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [ANN] Thin 0.5.1 LOLCAT released

@Steve: very nice! thx for benchmarking with Rails!

@Ollivier: like Xavier mentioned, Rails is not yet Ruby 1.9 compatible.
Rails core team working on this right now, but it's gonna be in next
Rails version, better update now to Rails 2.
I ddin't know about mongrel IPv6 support, I'll give it a look, thx!

@Joachim: no the website is a set of static HTML pages hosted on
DreamHost

thx for the comments, glad you like my project!
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 08/01/2008, 13h12   #7
Ollivier Robert
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [ANN] Thin 0.5.1 LOLCAT released

In article <db91d750672f6ae0e01224cf7780e75c@ruby-forum.com>,
Marc-andre Marc <macournoyer@gmail.com> wrote:
>I ddin't know about mongrel IPv6 support, I'll give it a look, thx!


Thanks.

It is not critical per-se as I have an IPv6-enabled Apache in front of
mongrel/thin for URL filtering/rewriting anyway but it would be better to keep
IPv6 support in, especially when mongrel has it.

--
Ollivier ROBERT -=- EEC/RIF/SEU -=-
Systems Engineering Unit
  Réponse avec citation
Vieux 09/01/2008, 02h49   #8
Rados³aw Bu³at
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [ANN] Thin 0.5.1 LOLCAT released

V293LCBJJ20gaW1wcmVzc2VkIHdpdGggVGhpbiBwZXJmb3JtYW 5jZSA6KS4KCkkgbm90aWNlZCB0
aGF0IC5pcmJyYyBmaWxlIGlzIGxvYWRlZCBhbmQgaXQncyBsb2 FkZWQgZXZlcnkgcmVxdWVzdCEg
SXMKaXQgaW50ZW50aW9uYWxseT8gSG93IHRvIGRpc2FibGUgdG hpcyBiZWhhdmlvdXI/CgotLSAK
UmFkb3OzYXcgQnWzYXQKCmh0dHA6Ly9yYWRhcmVrLmpvZ2dlci 5wbCAtIG3zaiBibG9nCg==

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h06.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,18831 seconds with 16 queries