Makoto Kuwata
5/23/2006 8:54:00 PM
anne001 wrote:
>if it is the same speed as eruby, and I have eruby installed and
>running, should I bother with erubis?
No, Erubis doesn't conflict with eruby nor ERB.
Erubis is not only faster but also more flexible and extensible
than eruby and ERB.
Here is an example result of benchmark.
Benchmark program is included in Erubis archive.
Env: Linux FedoraCore4, Celeron 667MHz, Mem512MB, Ruby1.8.4
user system total real
ERuby 138.280000 1.900000 140.180000 (141.470426)
ERB 402.220000 3.190000 405.410000 (408.886894)
Erubis::Eruby 147.080000 2.400000 149.480000 (150.752255)
Erubis::StdoutEruby 106.010000 2.130000 108.140000 (108.999193)
Env: MacOS X 10.4, PowerPC 1.42GHz, Mem1.5GB, Ruby1.8.4
user system total real
ERuby 55.040000 2.120000 57.160000 ( 89.311397)
ERB 103.960000 3.480000 107.440000 (159.231792)
Erubis::Eruby 36.130000 1.570000 37.700000 ( 52.188574)
Erubis::StdoutEruby 26.240000 1.490000 27.730000 ( 41.840430)
--
regards,
kwatch