Uncategorized

Node.js is FAST

So I just benchmarked Haraka vs Qpsmtpd. Both were using minimal config (accept all mails, don’t write to disk) so this is really only testing the core frameworks. Both were using async I/O (using qpsmtpd-async). Both single process on my iMac.

Results, qpsmtpd first:

matt@Valour ~/Perl/node$ time /usr/libexec/postfix/smtp-source -l 5000 -m 50000 -s 100 -d -f matt@local -t matt@haraka.local -c localhost:2525
50000

real	1m28.451s
user	0m1.789s
sys	0m6.357s

And Haraka:

matt@Valour ~/Perl/node$ time /usr/libexec/postfix/smtp-source -l 5000 -m 50000 -s 100 -d -f matt@local -t matt@haraka.local -c localhost:2525
50000

real	0m12.020s
user	0m1.730s
sys	0m6.351s
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s