simple timing test [was: [cvs] bogofilter/src mime.c]

Evgeny Kotsuba evgen at shatura.laser.ru
Tue Jan 4 14:09:46 CET 2005


Hi,

David Relson wrote:

>Here's the output from my Athlon 2500 running gcc and linux:
>
>[relson at osage src]$ grep -c "^From " tests/inputs/????.mbx
>tests/inputs/good.mbx:48
>tests/inputs/spam.mbx:21
>
>[relson at osage src] for N in tests/inputs/????.mbx ; do time bogofilter -D -M -I $N ; done
>Command exited with non-zero status 1
>0.26user 0.07system 0:00.36elapsed 93%CPU (0avgtext+0avgdata 0maxresident)k
>0inputs+0outputs (0major+1916minor)pagefaults 0swaps
>0.12user 0.02system 0:00.16elapsed 91%CPU (0avgtext+0avgdata 0maxresident)k
>0inputs+0outputs (0major+1855minor)pagefaults 0swaps
>
>[relson at osage src]$ for N in tests/inputs/????.mbx ; do time -p bogofilter -D -M -I $N ; done
>Command exited with non-zero status 1
>real 0.33
>user 0.26
>sys 0.06
>real 0.15
>user 0.12
>sys 0.03
>
>So I show 0.33 sec for the 48 good messages and 0.15 sec for the 21 spam messages.
>  
>
David,  you don't say what db you are using and on what basis i.e. is db 
running all time with its chaches ?
I get 20message/sec  when use QDBM and running bogofilter as pure task 
with full initialization for every single message.

SY,
EK




More information about the bogofilter-dev mailing list