Forum: Redcloth Benchmarking, performance tweaks

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jason G. (Guest)
on 2008-04-19 01: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
Jase (Guest)
on 2008-04-19 01:55
(Received via mailing list)
Great work :-) Some really significant improvement there!
This topic is locked and can not be replied to.