Timo Sirainen put forth on 11/4/2010 6:24 PM:
On 4.11.2010, at 23.09, Stan Hoeppner wrote:
That shows that mdbox is twice as fast as maildir for uncached searches, which I'm guessing are the majority of searches. I'd really be interested in seeing numbers for mbox as well.
Here's a way to do it in Linux:
- Fill up the mailbox with messages:
imaptest logout=0 - append=100,50 msgs=10000 user=testaccount
When it finishes, imaptest goes to infinite loop and you have to kill -9 it. I guess I should fix that some day.
Flush page cache: echo 1 > /proc/sys/vm/drop_caches
time doveadm search mailbox inbox text asdfasd
After 3 the mailbox should be cached, so you can run it again. Get imaptest from http://imapwiki.org/ImapTest
In non-Linux step 2 can be achieved by rebooting. :)
Thanks for the tip Timo. But it wouldn't really do me any good as my system specs are different from yours. Thus the results don't directly compare. Unfortunately I don't have a test system available to do all the mailbox types. I can only test mbox on my production system. That is, if imaptest will work against 1.2.x. The instructions seem to state 2.0.x is needed.
I guess I was under the assumption you have a test machine where you could knock out tests of all 4 mailbox types pretty easily. I guess I was wrong. :(
-- Stan