Ruby Forum Redcloth > Benchmarking, performance tweaks

Posted by Jason Garber (Guest)
on 18.04.2008 23:39
(Received via mailing list)
Hey, I did some benchmarking of RedCloth and changed the Ragel code
generation style to one that will use 14.6 MB of memory when you
compile rather than the 391MB it was using before.  It compiles
faster and the compiled file is smaller now too (about 223K).  A nice
milestone as we commit revision [300]!

Jason


name  compile_time  compile_max_rss  test_time  test_max_rss 
ext_so_size
T0 Table driven FSM (default)  21.57  14.67  3.45  17.85  223
T1 Faster table driven FSM  19.23  22.62  3.53  18.27  286
F1 Faster flat table-driven FSM  19.26  45.62  3.1  17.98  649
F0 Flat table driven FSM  20.1  45.69  3.45  18.43  585
G0 Goto-driven FSM  26.38  104.26  3.38  18.58  1103
G1 Faster goto-driven FSM  27.12  160.25  3.4  18.65  1194
G2 Really fast goto-driven FSM  75.3  391.06  3.33  18.14  2100
Posted by Jase (Guest)
on 18.04.2008 23:55
(Received via mailing list)
Great work :-) Some really significant improvement there!