[ANN] kwarts - a template system for Ruby

Hi,

I’m pleased to announce the release of a new template system for Ruby,
named ‘kwarts’ (kwa’s Ruby Template System).

Kwarts is:

  • very fast, almost as fast as mod_ruby script
  • easy to use
  • does not ‘break’ HTML file

Kwarts requires eRuby implementation(eruby, ERB or ERb).
You must install one of them before using kwarts.

Download:
http://www.kuwata-lab.com/ruby/kwarts/download.html

User’s Guide (also sample program):
http://www.kuwata-lab.com/ruby/kwarts/users-guide.html

I hope you’ll be pleased with it.

···


regards,
makotz kuwata

kwa@kuwata-lab.com (makotz kuwata) wrote:

Kwarts is:

  • very fast, almost as fast as mod_ruby script

I have done a simple benchmark test using ab(apache bench) command.

http://www.kuwata-lab.com/ruby/kwarts/benchmark.html

The result shows that

  • kwarts is almost as fast as mod_ruby script
  • eruby standalone is slow, but combination of mod_ruby and eruby
    is very fast.
    (There may be a bottle-neck when invoking eruby.)
  • ‘print CGI.new.header’ is a little heavy.
  • static html is very very fast.

See also:
http://www.io.com/~egabriel/bench/index.html

regards,
Makotz Kuwata

kwa@kuwata-lab.com (makotz) wrote in message news:1ccce21f.0303110319.31f112af@posting.google.com

···

Hi,

I’m pleased to announce the release of a new template system for Ruby,
named ‘kwarts’ (kwa’s Ruby Template System).

Kwarts is:

  • very fast, almost as fast as mod_ruby script
  • easy to use
  • does not ‘break’ HTML file

Kwarts requires eRuby implementation(eruby, ERB or ERb).
You must install one of them before using kwarts.

Download:
http://www.kuwata-lab.com/ruby/kwarts/download.html

User’s Guide (also sample program):
http://www.kuwata-lab.com/ruby/kwarts/users-guide.html

I hope you’ll be pleased with it.

I am posting my benchmark results now. Kwarts is the fastest template
system I have tested, and is nearly as fast as mod_ruby. It turns out
that eRuby itself is very fast also, as long as it is called from an .rbx
script and not interpreted automatically as an .rhtml file under mod_ruby.

Why this is, I don’t know, but the tests seem to bear it out.

Good work!

–Gabriel Emerson

(note: my tests don’t exercise many features in these template systems;
doing actual work would probably do a lot to my numbers)