chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] Re: #254: wiki-parse deficiencies


From: Chicken Trac
Subject: [Chicken-janitors] Re: #254: wiki-parse deficiencies
Date: Fri, 28 May 2010 10:13:57 -0000

#254: wiki-parse deficiencies
------------------------+---------------------------------------------------
 Reporter:  syn         |       Owner:  sjamaan
     Type:  defect      |      Status:  new    
 Priority:  major       |   Milestone:  4.6.0  
Component:  extensions  |     Version:  4.5.0  
 Keywords:  wiki-parse  |  
------------------------+---------------------------------------------------

Comment(by sjamaan):

 Replying to [comment:9 iraikov]:
 >
 > Out of curiosity, have you done any concrete benchmarking of wiki-parse?
 My only test case besides the Chicken manual is quite small: about 2.3MB
 of wiki content, divided in about 160 files, which seem to be parsed in
 2-3 seconds on my system. The Chicken manual is about 1.8MB currently.

 I've taken a random sample from the wiki contents to test qwiki with, and
 I noticed that especially the page for 9p (eggref/4/9p) is extremely slow.
 I just tested this and it turns out that it takes about 13 seconds to
 generate the full html page:

 {{{
 #;7> (time (qwiki-update-file! '("9p")))
   14.809 seconds elapsed
    5.268 seconds in (major) GC
  2603950 mutations
      212 minor GCs
      194 major GCs
 }}}

 I was wrong thinking it was all caused by wiki-parse, though!

 {{{
 #;2> (time (call-with-input-file "/tmp/qwiki/9p" wiki-parse))
    0.969 seconds elapsed
    0.025 seconds in (major) GC
    16028 mutations
     1522 minor GCs
        1 major GCs
 }}}

 I think one second for parsing is a bit on the slow side, but acceptable.

 zbigniew: it turns out svnwiki->sxml is faster, not slower (on this
 particular file) than wiki-parse :)

 {{{
 #;4> (time (call-with-input-file "/tmp/qwiki/9p" svnwiki->sxml))
    0.24 seconds elapsed
    0.016 seconds in (major) GC
     7161 mutations
     1085 minor GCs
        1 major GCs
 }}}

-- 
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/254#comment:13>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]