guile-user
[Top][All Lists]
Advanced

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

Re: Garbage collector tuning?


From: Jan Wedekind
Subject: Re: Garbage collector tuning?
Date: Thu, 10 Sep 2015 22:37:59 +0100 (BST)
User-agent: Alpine 2.11 (DEB 23 2013-08-11)

On Thu, 10 Sep 2015, David Pirotte wrote:

Jan,

     make[1]: Entering directory '/home/jan/test/aiscm/bench'
     LD_LIBRARY_PATH=../aiscm/.libs:../bench/.libs:/usr/local/lib
        GC_INITIAL_HEAP_SIZE=1G GC_USE_ENTIRE_HEAP=Y /usr/bin/guile
        --no-auto-compile -L .. bench.scm user

--no-auto-compile ?

this option is ok for scripts which does nothing but setting %load-path and/or
importing compiled modules and launch an application, for example, but to run a
benchmark I definitely would organize things so the benchmark module is 
compiled.

Cheers,
David


Ok, I see. I thought that option only is about writing the bytecode to disk. Now the benchmark only works after doing "make install" but the results are better :)

    $ make bench
    LD_LIBRARY_PATH=./.libs:/usr/local/lib GC_INITIAL_HEAP_SIZE=1G 
GC_USE_ENTIRE_HEAP=Y /usr/bin/guile bench.scm
                                           user     system      total        
real
    Guile GOOPS method dispatch        0.000040   0.000000   0.000040 (  
0.000040)
    Guile make empty sequence          0.000140   0.000000   0.000140 (  
0.000150)
    Guile allocate memory              0.000170   0.000010   0.000180 (  
0.000170)
    Guile negate empty sequence        0.001470   0.000100   0.001570 (  
0.001570)
    Guile make sequence                0.000250   0.000000   0.000250 (  
0.000250)
    Guile negate sequence              0.002520   0.000870   0.003390 (  
0.003400)
    C allocate memory                  0.000060   0.000000   0.000060 (  
0.000060)
    C negate empty sequence            0.000030   0.000000   0.000030 (  
0.000030)
    C negate sequence                  0.000700   0.000000   0.000700 (  
0.000710)

Regards
Jan



reply via email to

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