List Info

Thread: haml benchmarks




haml benchmarks
country flaguser name
United States
2007-03-21 13:14:27
how do I run the haml benchmark code that is in the plugin
dir?  is it
a special rake task?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: haml benchmarks
country flaguser name
United States
2007-03-21 16:00:46
Yep, "rake benchmark".

For future reference, rake has a handy -T flag that'll tell
you all
the available targets in the current Rakefile.

- Nathan

On Mar 21, 11:14 am, "cpjolico...gmail.com"
<cpjolico...gmail.com>
wrote:
> how do I run the haml benchmark code that is in the
plugin dir?  is it
> a special rake task?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: haml benchmarks
country flaguser name
United States
2007-03-22 08:03:05
Ok, I ran them.  Gotta say I'm a little disappointed to see
that haml
is 2x even approaching 3x as slow as erb when running large
tests.

Are people really using haml in a production environment and
not
noticing slowdowns??

On Mar 21, 5:00 pm, "Nex3" <Nex...gmail.com> wrote:
> Yep, "rake benchmark".
>
> For future reference, rake has a handy -T flag that'll
tell you all
> the available targets in the current Rakefile.
>
> - Nathan
>
> On Mar 21, 11:14 am, "cpjolico...gmail.com" <cpjolico...gmail.com>
> wrote:
>
> > how do I run the haml benchmark code that is in
the plugin dir?  is it
> > a special rake task?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: haml benchmarks
country flaguser name
United States
2007-03-22 09:23:36
Actually, I just wrote a note about this in the group. I'll
quote it
again to make sure that the record is straight on this.

"Pure haml is 2.7 times slower than pure erb. This is a
fact. And this
isn't due to Haml being slow, just erb being REALLY fast.

However, most of your time "rendering" in a Rails
applications is
spent with your models/helpers/etc building them as the
template is
processed. So, your total rendering time doesn't increase by
2.7, just
the pure-template part which is a trivial section in the
first place.
I've found that total page-rendering time only slows by
about 2-5%
when using Haml in a real Rails application. Haml is much
faster than
all the things you are doing *in* your application."

Yes. Haml is definitely being used in production. http://www.projectbrea
kout.com
is a site we just recently launched that is pure-Haml.

Here is a bit of the production.log I just saw on my tail
-f.


Processing InfoController#promote (for 198.185.18.207 at
2007-03-22
10:16:37) [GET]
  Session ID: 005ccc8de1243f1db8ac5ad038b04b3a
  Parameters: {"action"=>"promote",
"controller"=>"info"}
Rendering  within layouts/application
Rendering info/promote
Completed in 0.01489 (67 reqs/sec) | Rendering: 0.01453
(97%) | DB:
0.00000 (0%) | 200 OK [http://ww
w.projectbreakout.com/info/promote]

This page has a lot of Haml on it and loads very quickly.
The main
page of the site takes a bit longer to load, but mostly due
to all of
the things we are having to do in the template itself
(building rows,
sorting, etc).

A list of other production sites with Haml.

http://www.mdialogue.com/
http://www.pursudo.com/
http://www.lookingrea
lgood.com/

I'm sure there are more, but these are the one's my company
has
recently released.

-hampton.

On Mar 22, 9:03 am, "cpjolico...gmail.com"
<cpjolico...gmail.com>
wrote:
> Ok, I ran them.  Gotta say I'm a little disappointed to
see that haml
> is 2x even approaching 3x as slow as erb when running
large tests.
>
> Are people really using haml in a production
environment and not
> noticing slowdowns??
>
> On Mar 21, 5:00 pm, "Nex3" <Nex...gmail.com> wrote:
>
> > Yep, "rake benchmark".
>
> > For future reference, rake has a handy -T flag
that'll tell you all
> > the available targets in the current Rakefile.
>
> > - Nathan
>
> > On Mar 21, 11:14 am, "cpjolico...gmail.com" <cpjolico...gmail.com>
> > wrote:
>
> > > how do I run the haml benchmark code that is
in the plugin dir?  is it
> > > a special rake task?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: haml benchmarks
country flaguser name
United States
2007-03-22 13:42:51
Another note that I mentioned in the other thread: the Haml
page used in 
the benchmarking script, while it has roughly the same
output as the ERb 
page, has a rather large amount of dynamic content, even for
Haml. This 
content pretty much can't be reproduced in ERb, which
contributes 
negatively to Haml's overall performance.

- Nathan

hampton c wrote:
> Actually, I just wrote a note about this in the group.
I'll quote it
> again to make sure that the record is straight on
this.
>
> "Pure haml is 2.7 times slower than pure erb. This
is a fact. And this
> isn't due to Haml being slow, just erb being REALLY
fast.
>
> However, most of your time "rendering" in a
Rails applications is
> spent with your models/helpers/etc building them as the
template is
> processed. So, your total rendering time doesn't
increase by 2.7, just
> the pure-template part which is a trivial section in
the first place.
> I've found that total page-rendering time only slows by
about 2-5%
> when using Haml in a real Rails application. Haml is
much faster than
> all the things you are doing *in* your
application."
>
> Yes. Haml is definitely being used in production. http://www.projectbrea
kout.com
> is a site we just recently launched that is pure-Haml.
>
> Here is a bit of the production.log I just saw on my
tail -f.
>
>
> Processing InfoController#promote (for 198.185.18.207
at 2007-03-22
> 10:16:37) [GET]
>   Session ID: 005ccc8de1243f1db8ac5ad038b04b3a
>   Parameters:
{"action"=>"promote",
"controller"=>"info"}
> Rendering  within layouts/application
> Rendering info/promote
> Completed in 0.01489 (67 reqs/sec) | Rendering: 0.01453
(97%) | DB:
> 0.00000 (0%) | 200 OK [http://ww
w.projectbreakout.com/info/promote]
>
> This page has a lot of Haml on it and loads very
quickly. The main
> page of the site takes a bit longer to load, but mostly
due to all of
> the things we are having to do in the template itself
(building rows,
> sorting, etc).
>
> A list of other production sites with Haml.
>
> http://www.mdialogue.com/
> http://www.pursudo.com/
> http://www.lookingrea
lgood.com/
>
> I'm sure there are more, but these are the one's my
company has
> recently released.
>
> -hampton.
>
> On Mar 22, 9:03 am, "cpjolico...gmail.com" <cpjolico...gmail.com>
> wrote:
>   
>> Ok, I ran them.  Gotta say I'm a little
disappointed to see that haml
>> is 2x even approaching 3x as slow as erb when
running large tests.
>>
>> Are people really using haml in a production
environment and not
>> noticing slowdowns??
>>
>> On Mar 21, 5:00 pm, "Nex3" <Nex...gmail.com> wrote:
>>
>>     
>>> Yep, "rake benchmark".
>>>       
>>> For future reference, rake has a handy -T flag
that'll tell you all
>>> the available targets in the current Rakefile.
>>>       
>>> - Nathan
>>>       
>>> On Mar 21, 11:14 am, "cpjolico...gmail.com" <cpjolico...gmail.com>
>>> wrote:
>>>       
>>>> how do I run the haml benchmark code that
is in the plugin dir?  is it
>>>> a special rake task?
>>>>         
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: haml benchmarks
country flaguser name
United States
2007-03-22 11:17:40
http://validator.w3.org/check?uri=http%3A
%2F%2Fwww.projectbreakout.com%2F&charset=%28detect+autom
atically%29&doctype=Inline

hmmmmm....

On Mar 22, 8:23 am, "hampton c" <hcat...gmail.com> wrote:
> Yes. Haml is definitely being used in production.http://www.projectbrea
kout.com
> is a site we just recently launched that is pure-Haml.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: haml benchmarks
country flaguser name
United States
2007-03-22 20:55:24
No offense, but:

http://validator.w3.org/check?uri=http%3A%2F
%2Fwww.calicowebdev.com% 
2F&charset=%28detect+automatically%29&doctype=Inline


This is all Haml.

--steve

On Mar 22, 2007, at 9:17 AM, jed.hurtgmail.com wrote:

>
> http://
validator.w3.org/check?uri=http%3A%2F% 
>
2Fwww.projectbreakout.com%2F&charset=%28detect+automatic
ally% 
> 29&doctype=Inline
>
> hmmmmm....
>
> On Mar 22, 8:23 am, "hampton c"
<hcat...gmail.com> wrote:
>> Yes. Haml is definitely being used in
production.http:// 
>> www.projectbreakout.com
>> is a site we just recently launched that is
pure-Haml.
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: haml benchmarks
user name
2007-03-22 21:58:43
A) Designers aren't as familiar with the XHTML spec as I'd
like.
B) What kind of person runs validations on people sites
anyway? Get a
job! Haml does not require XHTML spec validation, nor will
it ever.
C) That being said, this is something that should be fixed.
I will fix
it as best I can without breaking the code that the
designers wrote or
wasting my time. It was a mistake and I should fix it.
D) It works on all browsers... IE5, 6, 7, Safari, and
Firefox. And
*that* I'm proud of.

-hampton.



On 3/22/07, jed.hurtgmail.com <jed.hurtgmail.com> wrote:
>
> http://validator.w3.org/check?uri=http%3A
%2F%2Fwww.projectbreakout.com%2F&charset=%28detect+autom
atically%29&doctype=Inline
>
> hmmmmm....
>
> On Mar 22, 8:23 am, "hampton c"
<hcat...gmail.com> wrote:
> > Yes. Haml is definitely being used in
production.http://www.projectbrea
kout.com
> > is a site we just recently launched that is
pure-Haml.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: haml benchmarks
user name
2007-03-22 22:26:51
I have gotten it down to 2 errors now (actual errors... it
says 4, but
they are 2) and if I fix them they will most likely break
the styles
on the site. So, I'll get to them later.

-hampton.

On 3/22/07, Hampton <hcatlingmail.com> wrote:
> A) Designers aren't as familiar with the XHTML spec as
I'd like.
> B) What kind of person runs validations on people sites
anyway? Get a
> job! Haml does not require XHTML spec validation, nor
will it ever.
> C) That being said, this is something that should be
fixed. I will fix
> it as best I can without breaking the code that the
designers wrote or
> wasting my time. It was a mistake and I should fix it.
> D) It works on all browsers... IE5, 6, 7, Safari, and
Firefox. And
> *that* I'm proud of.
>
> -hampton.
>
>
>
> On 3/22/07, jed.hurtgmail.com <jed.hurtgmail.com> wrote:
> >
> > http://validator.w3.org/check?uri=http%3A
%2F%2Fwww.projectbreakout.com%2F&charset=%28detect+autom
atically%29&doctype=Inline
> >
> > hmmmmm....
> >
> > On Mar 22, 8:23 am, "hampton c"
<hcat...gmail.com> wrote:
> > > Yes. Haml is definitely being used in
production.http://www.projectbrea
kout.com
> > > is a site we just recently launched that is
pure-Haml.
> >
> >
> > > >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-9]

about | contact  Other archives ( Real Estate discussion Medical topics )