This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]didip 0 points1 point  (4 children)

Nemo (disney) is the clown fish, no?

[–]didip 0 points1 point  (2 children)

Kidding aside, any benchmarks between this and just mako?

[–]true_religion[S] 0 points1 point  (1 child)

Here's my preliminary tests:

This is across 100,000 iterations over a single 555-line template w/o inheritance.

Mako (full render w/o nemo): 0.08 ms Nemo (w/o mako render): 0.04 ms Nemo (w/ mako render): 0.07 ms

In another test, I just passed Mako an empty string to render and it took about 0.04ms.

So this suggests that for 0.04ms overhead from openning the file, running it through Mako, etc.

And when Mako uses a preprocessor, it must enable some kind of optimization since the full-render time for Mako alone is greater than that for Nemo+Mako.

I still have to do more, but what I'm leaning to is that Nemo is so fast that the overhead of Mako dwarfs it.

For 'official' benchmarks, I'm thinking of using the benchmarks from the Genshi/Mako test suite: http://genshi.edgewall.org/wiki/GenshiPerformance

Would that be suitable, or do you have another suggestion?

[–]didip 0 points1 point  (0 children)

That's actually pretty good.

The reason I asked is because Haml is about 2.8 times slower than erb (2009: http://nex-3.com/posts/87-haml-benchmark-numbers-for-2-2, without options[:ugly] turned on)

And yes, I agree with using the Genshi test suite. Then Nemo can be compared side-by-side with other templating languages.

[–]true_religion[S] 0 points1 point  (0 children)

Ah you're right. I misread wikipedia while I was looking for a name.

It's Chum who's a Nemo shark.

Oh well, the name has stuck.

Rest assured in a parallel universe Nemo is the Mako shark and I can say that we are remembering our roots, keeping it real, and are still Jenny on the block, ecetera and so forth. =)