On 2011-07-11 01:00, Jerry 270 wrote:
> 
> Hi,
> 
>   I am a newbie to ClamAV so require help please.  I am doing a research 
> project and would like to evaluate the BM and AC algorithms used by ClamAV.  
> Is there anyway to get ClamAV to use either BM or AC on their own so scanning 
> speed tests can be conducted for each algorithm separately?  I have read on 
> this list that you can't get BM to run on its own.
> 
>   What is the best way to compare the two algorithms and can someone give me 
> more information on how ClamAV uses or chooses between BM and AC please?  

There are some AC/BM discussion in the archive, see for example:
http://lurker.clamav.net/message/20100426.103047.eb6fd9d0.en.html
http://lurker.clamav.net/message/20100427.131931.b705e603.en.html
http://lurker.clamav.net/message/20081204.212941.c9fa45c2.en.html

You can use DevACOnly to use only the AC algorithm for everything (there is no 
equivalent for BM),

Other than that you can use tools such as 'oprofile', or 'perf record / perf 
report' to see how much time
is spent in functions from matcher-ac.c and how much time in those from 
matcher-bm.c.

Also note that there is the prefiltering step too, if you want to measure just 
the AC/BM performance, you should disable that
(although you'll loose performance by doing so).

What are your research project's goals?

Best regards,
--Edwin

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Reply via email to