Skip to content

Instantly share code, notes, and snippets.

@baudehlo
Created December 6, 2012 22:33
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baudehlo/4229099 to your computer and use it in GitHub Desktop.
Save baudehlo/4229099 to your computer and use it in GitHub Desktop.
Apache James 2.3.2 vs Apache James 3.0.0beta4 vs Haraka 2.0.2 vs Postfix
Apache James 2.3.2, delivering to a local user, default setup
$ time /usr/libexec/postfix/smtp-source -c -l 5000 -t testuser@localhost -s 100 -m 10000 127.0.0.1:25
10000
real 1m5.751s
user 0m0.630s
sys 0m1.945s
Apache James 3.0.0beta4, delivering to a local user, default setup
$ time /usr/libexec/postfix/smtp-source -c -l 5000 -t testuser@mydomain.tld -s 100 -m 10000 127.0.0.1:25
10000
real 0m43.332s
user 0m0.772s
sys 0m2.420s
Haraka (with nodes=cpus, loglevel=LOGNOTICE, outbound.disabled=1, plugins=relay_all)
This simulates local user delivery because it has to write the mail to disk, though has no overhead of user lookup.
$ time /usr/libexec/postfix/smtp-source -c -l 5000 -t testuser@localhost -s 100 -m 10000 127.0.0.1:2525
10000
real 0m11.910s
user 0m0.665s
sys 0m2.157s
Postfix (with delivery to a local user's Maildir, but not waiting for the queue to get emptied. This is still writing to disk though)
Note that I had to turn smtpd_client_connection_count_limit off.
$ time /usr/libexec/postfix/smtp-source -c -l 5000 -t matt@localhost -s 100 -m 10000 127.0.0.1:25
10000
real 0m27.898s
user 0m0.586s
sys 0m2.166s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment