in reply to Re^6: developing a template system
in thread developing a template system

My results are a bit different. When I turn off case-sensitivity, JIT immediately becomes 20% faster than Compiled. When I increase the size of the template, JIT slows down but Compiled is almost unaffected. At 4 times the original size, JIT slows down to the point where Compiled is twice as fast as JIT.

FYI, my system is Fedora Core 3 with Perl 5.8.5.

Replies are listed 'Best First'.
Re^8: developing a template system
by tinita (Parson) on Aug 22, 2005 at 14:33 UTC
    interesting - i guess i'll extend the benchmark script a bit so that it runs for different template sizes. The results seem to differ very much. How are you testing?

    I'm on Linux 2.6.10-5-amd64-xeon, perl 5.8.4.

      I am just running it through 5000 iterations. I did comment out the "new" part of the benchmark, since I don't find that bit interesting. I am just looking at the "output" times.
        i added some more tests in later versions. current version ist 0.380.39. i think the interesting part is new+param+output, and with that and a 18k template i get:
        all_ht: 1 wallclock secs ( 1.00 usr + 0.00 sys = 1.00 CPU) @ 20.00/ +s (n=20) all_htc: 1 wallclock secs ( 1.07 usr + 0.00 sys = 1.07 CPU) @ 120.56 +/s (n=129) all_htj: 1 wallclock secs ( 1.08 usr + 0.02 sys = 1.10 CPU) @ 763.64 +/s (n=840)